Home Answers Viewqa Java-Beginners Solution to C prog

 
 


Venkateswaru Busam
Solution to C prog
0 Answer(s)      8 months ago
Posted in : Java Beginners

Hi,

Pls any body help, why the following prog crashing while running.

#include<stdio.h>
#include<conio.h>
int main(){
    int n,*fact(int *n);
    printf("Enter the number:");
    scanf("%d",&n);
    printf("The factorial is %d\n",*fact(&n));
    getch();
}
int *fact(int *p){
    int *res;
        if(*p == 1)
            return(&1);
        else{
            *res = (*p)-- * *fact(p);
        }
    return(&res);
}

Thanks Venkii.

View Answers









Related Pages:
Solution to C prog
Solution to C prog   Hi, Pls any body help, why the following prog crashing while running. #include<stdio.h> #include<conio.h> int main(){ int n,*fact(int *n); printf("Enter the number:"); scanf
turbo C prog.
turbo C prog.  Is is possible print ASCII value of a alphabets using turbo C prog
turbo C prog.
turbo C prog.  Is it possible to print ASCII value A to Z with out...;#include<stdio.h> #include<conio.h> void main() { for(char c='A';c<='Z';c++){ printf("\nASCII of %c is %i\n", a, a); } getch(); } C
turbo C prog. Q3
turbo C prog. Q3  What is the difference between if and ladder... } Example of ladder if: #include <stdio.h> main() { int a,b,c; printf("enter values for a,b,c"); scanf("%d%d%d",&a,&b,&c); if(a>
(ForPro) turbo C prog. Q4
(ForPro) turbo C prog. Q4  I need to learn some easy foxpro program.. for example sum,interchange, loop etc
solution of k map in c
solution of k map in c  write a program in c to solve k-map with digital circuit
prog. using radio buttons for simple calculator
prog. using radio buttons for simple calculator  import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.... = {"+", "-", "*", "/","=","C"}; for (int i = 0; i < opOrder.length; i
prog. using radio buttons for simple calculator
prog. using radio buttons for simple calculator  import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.... = {"+", "-", "*", "/","=","C"}; for (int i = 0; i < opOrder.length; i
SOLUTION: How to compile Objective C on Windows with GNU Step ?
SOLUTION: How to compile Objective C on Windows with GNU Step ?  <p>I just started learning ObjC today and found this tutorial informative, except the fact that the above program needs some more instructions to run. Here
C# question
Create a Solution by name Bank with Classes Account.cs, SavingsAccount.cs and savingsTest.cs to Demonstrate Abstract Classes in C#  1st question : Create a Solution by name Bank with Classes Account.cs, SavingsAccount.cs
Please find me a solution that
Please find me a solution that   Write a java program.... c. Void Triangle Method has two parameters which are base and vertical height... in (a),(b), (c), and (d) stated above in class "Area" b. 'For statement loop
NEED A PROG
NEED A PROG   whats the program to add,delete, display elements of an object using collecions. without using linked list   Hi Friend, Try the following code: import java.util.*; class CollectionExample { public
solution
solution   A developer wants you to develop a simple take away restaurant order service. The system reads from a file containing information about the restaurant (such as the name, place and menu). The system then allows the user
solution
solution   A developer wants you to develop a simple take away restaurant order service. The system reads from a file containing information about the restaurant (such as the name, place and menu). The system then allows the user
Java Programming: Solution to Programming Exercise
an error message: try { solution = root(A,B,C... { solution = root(A,B,C); TextIO.putln("A solution... Solution for Programming Exercise 9.1 THIS PAGE DISCUSSES ONE
java prog que
java prog que  create a class that returns the reverse of each word in the given string. For example if we give "who are u?" as input, it should return "ohw era u
Java Programming: Solution to Programming Exercise
Solution for Programming Exercise 9.3 THIS PAGE DISCUSSES ONE POSSIBLE SOLUTION to the following exercise from this on-line Java textbook...: M 1000 X 10 D 500 V 5 C
question "writing prog"
question "writing prog"  Hello I want helping for this question, please Write a program that reads some friendsā?? names, stores them in an array, and then prints out on the screen all friends who start by a particular letter
Java Programming: Solution to Programming Exercise
Solution for Programming Exercise 7.3 THIS PAGE DISCUSSES ONE POSSIBLE SOLUTION to the following exercise from this on-line Java textbook..., setColor(Color c), to set the color to a specified value. Both these methods
servlet prog - Java Interview Questions
servlet prog  how to forward or redirect the client request from servlet to jsp? how a thread or request pass from one servlet prog to one jsp prog? is it possible of communicating from servlet to jsp prog? please explain briefly
Java Programming: Solution to Programming Exercise
Solution for Programming Exercise 4.2 THIS PAGE DISCUSSES ONE POSSIBLE SOLUTION to the following exercise from this on-line Java textbook... to find out whether there was an error. The Solution public class
Java Programming: Solution to Programming Exercise
Solution for Programming Exercise 4.5 THIS PAGE DISCUSSES ONE POSSIBLE SOLUTION to the following exercise from this on-line Java textbook... discover the current red component of the square in row r and column c
make a prog for this query
make a prog for this query  write a program implementing interface for personal data n salary details. interface must contain abstract methods. steps for the program are 1) store the data in text file 2)display salary when emp id
Java Programming: Solution to Programming Exercise
Solution for Programming Exercise 10.4 THIS PAGE DISCUSSES ONE POSSIBLE SOLUTION to the following exercise from this on-line Java textbook... this in the solution that follows. (My ConnectionHandler class is a static nested
Java Programming, Solution to Programming Exercise
Solution for Programming Exercise 12.4 THIS PAGE DISCUSSES ONE POSSIBLE SOLUTION to the following exercise from this on-line Java textbook.... // If there is no such item, return -1. (In C++, methods similar to these are included
Java Programming: Solution to Programming Exercise
Solution for Programming Exercise 8.5 THIS PAGE DISCUSSES ONE POSSIBLE SOLUTION to the following exercise from this on-line Java textbook... in a row belonging to the player. int r, c; // A row and column
Java Programming: Solution to Programming Exercise
Solution for Programming Exercise 4.6 THIS PAGE DISCUSSES ONE POSSIBLE SOLUTION to the following exercise from this on-line Java textbook... be preferred by most Java and C++ programmers. Putting this all together gives
VoIP Billing Solution
VoIP Billing Solution      ... Billing solution is the strategic choice for service providers seeking telco... Management Software Looking for a billing and management solution for your
Java Programming: Solution to Programming Exercise
Solution for Programming Exercise 7.8 THIS PAGE DISCUSSES ONE POSSIBLE SOLUTION to the following exercise from this on-line Java textbook... original solution, the "Select Custom Color..." command did nothing but change
Prog Error - JSP-Servlet
Prog Error   Place Ad function Browse() { Advertisement Management System Create Ad State: City: Main Category: Sub Category: Title
Java entry prog.
Java entry prog.  Dear sir I will enter the dept code, dept name and insert into dept_mast and save. Pl. Dept_mast Dept_code Char(2) Primary key (no duplicate key allowed) Dept_name Char(25
JSTL c:catch with c:if
that solution by yourself. Then then is one tag provided to you that is <c...JSTL c:catch with c:if      ... a error then we should write those codes inside the <c:catch> core action tag
C++
C++  How can i write this in dev c
C++
C++  How can i write this in dev c
c++
c++  use a prgrm as an example to xplain-: a)class b)object c)message d)cope resolution operator
c++
c++  write a programme that calculates the area and circumference of a rectangle
c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used
c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used
c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used
C++
C++  dear sir How to create windows form application for login screen using C++? USER Name -TESTADMIN Password -testuser
c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples
c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.