what will be the output of" printf("%d%d",scanf("%d%
d",&a&b));"

Answer Posted / satya

main()
{
int a,b;
printf("%d,%d",scanf("%d%d",&a,&b));
}


=> do u mean above program's output...
=>output will be:2,whatever you enter value for b.
=>because scanf is a library fn which will return how many
arguements it processes, and second value

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is malloc calloc and realloc in c?

649


Explain how can I read and write comma-delimited text?

638


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

706


FILE PROGRAMMING

1767


What are the features of the c language?

633






What is pragma in c?

616


What are the basic data types associated with c?

803


What is a volatile keyword in c?

628


What are reserved words with a programming language?

588


What is extern c used for?

559


What the advantages of using Unions?

664


What is c system32 taskhostw exe?

574


Write a program to swap two numbers without using third variable?

807


What is printf () in c?

571


How do I read the arrow keys? What about function keys?

606