what will be the output of "printf("%d%d",scanf("%d%
d",&a,&b))".provide an explation regarding the question

Answer Posted / amegha

scanf() returs the number of vlaues read successfully. so
heree the pritf() prints the value that is returned by the
scanf(), ie 2.(a,b). so the output will be 2 and some
garbage value.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why isn't any of this standardized in c? Any real program has to do some of these things.

620


In c programming language, how many parameters can be passed to a function ?

624


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

605


Write a program to check armstrong number in c?

631


What is sorting in c plus plus?

561






What is pointer to pointer in c language?

589


Why we use stdio h in c?

573


When should volatile modifier be used?

544


What is the difference between printf and scanf )?

585


What is bubble sort in c?

627


What are the functions to open and close file in c language?

723


What is identifier in c?

535


what is different between auto and local static? why should we use local static?

635


What does the c in ctime mean?

561


Differentiate between new and malloc(), delete and free() ?

663