ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
   
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
what will be the output of "printf("%d%d",scanf("%d%
d",&a,&b))".provide an explation regarding the question
 Question Submitted By :: Akki166786
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question
Answer
# 1
the output will be what value of a and b... 
Is This Answer Correct ?    1 Yes 8 No
Nilambuja
 
  Re: what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question
Answer
# 2
i think it will print the 2, and some garbage value. 
Is This Answer Correct ?    7 Yes 0 No
Dipendra
 
 
 
  Re: what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question
Answer
# 3
scanf() returs the number of vlaues read successfully. so
heree the pritf() prints the value that is returned by the
scanf(), ie 2.(a,b). so the output will be 2 and some
garbage value.
 
Is This Answer Correct ?    4 Yes 0 No
Amegha
 
  Re: what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question
Answer
# 4
if we enter
1234
5678
answer is
2 5678
plz tell how
 
Is This Answer Correct ?    1 Yes 1 No
Manish Soni Bca 3rd Year Jaipu
 
  Re: what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question
Answer
# 5
you are right mr. manish that it will print 2 and value of
'b' but i also dont know why it is printing the value of 'b'..
 
Is This Answer Correct ?    0 Yes 0 No
Akki166786
[Bhabha]
 
  Re: what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question
Answer
# 6
what is output of this program
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
a=10;
b=20;
printf("%d %d");
getch();
}

it gives the 20 10;
bcoz printf fn return which value,
read recently ,reversely.
so above question we easly explain.
that;-
so scanf fn return which value process it.
scanf fn return 2 and after return value of b.


manish soni bca 3rd year jaipur tagore college
 
Is This Answer Correct ?    1 Yes 0 No
Manish Soni Bca 3rd Year Jaipu
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
What are data breakpoints? Adobe2
what type of language is C? Microsoft5
what is array?  8
#include<stdio.h> void main() { int a=5,b=6,c; int x=(a<b)+7; int y=(x==7)*9; int z=(c=x+y)*2; printf("%h %h %h",x,y,z); } What is the output? Explain it. IBM8
Write a program or provide a pseudo code to flip the 2nd bit of the 32 bit number ! (Phone Screen) NetApp1
what is c language.  3
write a progam to compare the string using switch case?  1
why do we use # in c-language?  1
Name the language in which the compiler of "c" in written? Bajaj3
what are bps & baud rates? differentiate these two? TCS2
What is the main differences between C and Embedded C?  6
input may any number except 1,output will always 1.. conditions only one variable should be declare,don't use operators,expressions,array,structure IBM4
 
For more C Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com