#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?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

FILE PROGRAMMING

2003


What are volatile variables in c?

706


I need a sort of an approximate strcmp routine?

838


What is the difference between malloc() and calloc() function in c language?

833


When should the const modifier be used?

867


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

849


In a switch statement, what will happen if a break statement is omitted?

835


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

2165


What is the difference between constant pointer and constant variable?

976


How can I manipulate individual bits?

809


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

1645


program to convert a integer to string in c language'

2202


What is keyword with example?

829


Explain how can I remove the trailing spaces from a string?

824


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

2599