#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

whats the use of header file in c?

2 Answers  


write a c program to calculate the income tax of the employees in an organization where the conditions are given as. (I.T. = 0 if income <100000 I.T = 10% if income _< 200000 it = 20% if income >_ 200000)

7 Answers   Consultancy, DBU, FD, JK Associates, Kobe, Satyam,


If we have an array of Interger values, find out a sub array which has a maximum value of the array and start and end positions of the array..The sub array must be contiguious. Take the start add to be 4000. For Ex if we have an array arr[] = {-1,-2,-5,9,4,3,-6,8,7,6,5,-3} here the sub array of max would be {8,7,6,5} coz the sum of max contiguous array is 8+7+6+5 = 26.The start and end position is 4014(8) and 4020(5).

5 Answers   Microsoft, Motorola,


What is variable and explain rules to declare variable in c?

0 Answers  


Explain what are its uses in c programming?

0 Answers  






How to write a code for random pick from 1-1000 numbers? The output should contain the 10 numbers from the range 1-1000 which should pick randomly, ie ,for each time we run the code we should get different outputs.

12 Answers   NetApp,


When should we use pointers in a c program?

0 Answers  


#include<stdio.h> void main() { int =1; printf("%d%d%d",a++,++a,++a); }

3 Answers   VB,


how we can make 3d venturing graphics on outer interface

1 Answers   Microsoft,


WHY DO WE USE A TERMINATOR IN C LANGUAGE?

2 Answers  


What is queue in c?

0 Answers  


Explain logical errors? Compare with syntax errors.

0 Answers  


Categories