#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 value of h?

0 Answers  


What's wrong with "char *p; *p = malloc(10);"?

5 Answers  


what is ur strangth & weekness

0 Answers   Cognizant, LG Soft, NetEnrich,


Is c procedural or object oriented?

0 Answers  


in malloc and calloc which one is fast and why?

1 Answers  






How can you read a directory in a C program?

0 Answers  


C program to find all possible outcomes of a dice?

0 Answers  


Explain the binary height balanced tree?

0 Answers  


List the difference between a 'copy constructor' and a 'assignment operator' in C?

0 Answers   Accenture,


What is union in c?

0 Answers  


create an SINGLE LINKED LISTS and reverse the data in the lists completely

3 Answers  


How can I remove the leading spaces from a string?

0 Answers  


Categories