#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

How many keywords are there in c?

0 Answers  


What is struct node in c?

0 Answers  


what are bps & baud rates? differentiate these two?

2 Answers   TCS,


How do you print only part of a string?

0 Answers  


write a programming in c language, 1 3 5 7 9 11

2 Answers   NIIT,


How can I dynamically allocate arrays?

0 Answers  


WHY DO WE USE A TERMINATOR IN C LANGUAGE?

2 Answers  


Why does this code crash?

0 Answers  


atoi, which takes a string and converts it to an integer. write a program that reads lines(using getline), converts each line to an integer using atoi and computes the average of all the numbers read. also compute the standard deviation

0 Answers  


An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode

0 Answers  


What are the standard predefined macros?

0 Answers  


How can I find the modification date of a file?

0 Answers   Celstream,


Categories