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 void main () in c?

830


Explain pointer. What are function pointers in C?

723


What are the types of type qualifiers in c?

740


What is a static variable in c?

765


Is it acceptable to declare/define a variable in a c header?

762






What do header files do?

700


What is p in text message?

634


Which header file is used for clrscr?

674


Is c++ based on c?

746


List some of the dynamic data structures in C?

896


What are 3 types of structures?

688


In c language can we compile a program without main() function?

683


Explain how can I convert a string to a number?

724


Using which language Test cases are added in .ptu file of RTRT unit testing???

3794


Why is it important to memset a variable, immediately after allocating memory to it ?

1646