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

Answer Posted / suraj verma

It will return number of arguments taken
by scanf function which is two in this case
& the other value can be any garbage value.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What should malloc(0) do?

802


What are multibyte characters?

836


about c language

1790


How can I call a function with an argument list built up at run time?

900


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

885


How can I recover the file name given an open stream or file descriptor?

816


What is getch c?

1041


what will be maximum number of comparisons when number of elements are given?

1643


What is the difference between fread buffer() and fwrite buffer()?

890


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

911


What are loops in c?

760


What are the applications of c language?

832


What is difference between stdio h and conio h?

1099


Explain what is the benefit of using an enum rather than a #define constant?

974


What are integer variable, floating-point variable and character variable?

848