what does the following function print?
func(int i)
{
if(i%2)return 0;
eale return 1;
}
main()
{
int =3;
i=func(i);
i=func(i);
printf("%d",i);}
Answer Posted / mahi
The code returns error as i is undeclared see in main
int =3 and
instead of
else eale is used.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the three constants used in c?
Difference between goto, long jmp() and setjmp()?
How we can insert comments in a c program?
Is it better to use malloc() or calloc()?
How is pointer initialized in c?
What are the rules for the identifier?
In C language what is a 'dangling pointer'?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
Write a program on swapping (100, 50)
Describe the header file and its usage in c programming?
What is 2c dna?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
How do you generate random numbers in C?
Explain what is wrong with this program statement?