Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

#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 / muthuveerappan


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 / 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


it will display 4 on screen ...

Is This Answer Correct ?    5 Yes 3 No

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

Answer / magesh


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


Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

Is there a built-in function in C that can be used for sorting data?

0 Answers  

2.Given the short c program that follows a. make a list of the memory variables in this program b.which lines of code contain operations that change the contents of memory? what are those operations? Void main( void) { Double base; Double height; Double area; Printf(“enter base and height of triangle :”); Scanf(“%lg”, &base); Scanf(“%lg”, &height); Area=base*height/2.0; Printf(“the area of the triangle is %g \n”,area); }

1 Answers   Wipro,

why u join this call center?

6 Answers   DELL,

A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

0 Answers  

Define function pointers?

1 Answers  

How is a two dimensional array passed to function when the order of matrix is not known at complie time?

1 Answers   CSC,

What does return 1 means in c?

0 Answers  

Explain can the sizeof operator be used to tell the size of an array passed to a function?

0 Answers  

#define MAX 3 main() { printf("MAX = %d \n",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif

4 Answers   IBM, Vector,

Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

0 Answers  

how to count no of words,characters,lines in a paragraph.

0 Answers  

what would be the output of the following prog? Justify your answer? main() { unsigned char ch; unsigned char i; ch = -255; printf("%d",ch); i = -1; printf("%d",i); }

1 Answers