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

Is fortran still used in 2018?

783


What are enumerated types?

829


Explain enumerated types.

787


What are the valid places to have keyword “break”?

805


Why is python slower than c?

792






What is the explanation for cyclic nature of data types in c?

842


What is difference between static and global variable in c?

730


Differentiate between the expression “++a” and “a++”?

941


Who is the main contributor in designing the c language after dennis ritchie?

747


Is main a keyword in c?

816


Why is c platform dependent?

782


in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

906


what is event driven software and what is procedural driven software?

2234


write a programming in c to find the sum of all elements in an array through function.

1896


What is FIFO?

1079