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                      
Google
   
 
Categories >> Software >> Programming Languages >> C
 
 


 

 
 C interview questions  C Interview Questions (2248)
 C++ interview questions  C++ Interview Questions (1106)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (644)
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
 
find second largest element in array w/o using sorting techniques? use onle one for loop. Zycus-Infotech 15
how can i calculate mean,median,mode by using c program HCL 1
why division operator not work in case of float constant?   2
write a program structure to find average of given number   1
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting. TCS 1
the operator for exponencation is a.** b.^ c.% d.not available TCS 5
c program to print a name without using semicolon TCS 9
which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn 2)continue;} b.while(!expn 1){if(expn 2)continue;...} c.do{..if(expn 1)continue;..}while(expn 2); d.while(!expn 2){if(expn 1)continue;..} TCS 4
True or false: If you continuously increment a variable, it will become negative? 1) True 2) False 3) It depends on the variable type   7
How can we see the Expanded source code and compiled code for our source program in C?   1
program to get the remainder and quotant of given two numbers with out using % and / operators? IBM 10
Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+.   1
 
For more C Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com