#include<stdio.h> void main() { int a=10,b=20,c=30;
printf("%d",scanf("%d%d%d",&a,&b,&c)); }

what is the output for this?

Answers were Sorted based on User's Feedback



#include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d&..

Answer / sorab

IT will print 3 becoz in the inner statement of printf()you have scanf() statement .scanf() will take the 3 inputs from user and after that it will return 3 to printf()and 3 display on screen

printf("%d",scanf("%d%d%d%d",&a&b&c));

it will display 4 on screen ...

Is This Answer Correct ?    6 Yes 3 No

#include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d&..

Answer / muthuveerappan

3

Is This Answer Correct ?    7 Yes 5 No

#include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d&..

Answer / magesh

0

Is This Answer Correct ?    1 Yes 2 No

#include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d&..

Answer / aswanth

-1

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

What is the difference between malloc() and calloc()?

0 Answers  


write a own function to compare two strings with out using stringcomparition function?

6 Answers   LG Soft, Sasken,


How to print "I Love My India" without using semi colon?

4 Answers  


What does 2n 4c mean?

0 Answers  


What are variables and it what way is it different from constants?

0 Answers  






why do some people write if(0 == x) instead of if(x == 0)?

0 Answers  


Explain how can you be sure that a program follows the ansi c standard?

0 Answers  


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

0 Answers  


What is the size of structure in c?

0 Answers  


How many types of functions are there in c?

0 Answers  


What is anagram in c?

0 Answers  


How to print %d in output

6 Answers   Wipro,


Categories