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

Answer Posted / bhavani

=>output will be:2,whatever you enter value for a.
=>because scanf is a library fn which will return how many
arguements it processes, and first value

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

736


What is wrong with this code?

684


What is the size of structure in c?

691


What is c++ used for today?

651


What is null character in c?

681






how to construct a simulator keeping the logical boolean gates in c

1716


What is meant by preprocessor in c?

526


What are the preprocessor categories?

627


Wt are the Buses in C Language

2742


Which header file is used for clrscr?

567


Which is more efficient, a switch statement or an if else chain?

570


How can I generate floating-point random numbers?

596


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

634


What is meant by errors and debugging?

639


What is NULL pointer?

671