what is the output for the code :
main()
{
int i,j;
printf("%d %d ",scanf("%d%d",&i,&j));
}

Answer Posted / vantees

First of all, we need to give two integer number as input.Since scanf return the no of arguments passed to it, except format specifier.So out is: 2,unknown value

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of realloc()?

882


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

841


What is the function of multilevel pointer in c?

845


Why do we use return in c?

746


 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.

1953


What is the use of function in c?

922


Why ca not I do something like this?

785


What is a struct c#?

779


Difference between strcpy() and memcpy() function?

862


What is pointers in c?

891


Why & is used in scanf in c?

809


What is #line in c?

765


How do you determine whether to use a stream function or a low-level function?

911


What does volatile do?

754


What is pointer & why it is used?

814