GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  CDAC

 Print  |  
Question:  What will be the output for the below statements
1) printf("hello""hai");
a)hello
b)hai
c)both
d)none of these

2) printf("hello","hai");
a)hello
b)hai
c)both
d)none of these
(NOTE:this is recently asked question in CDAC)


Answer: ANS 1: c

ANS 2: a


April 04, 2008 02:12:54 #1
 btnedu   Member Since: June 2007    Total Comments: 1 

RE: What will be the output for the below statements1) printf("hello""hai"); a)hello b)hai c)both d)none of these 2) printf("hello","hai"); a)hello b)hai c)both d)none of these (NOTE:this is recently asked question in CDAC)
 

printf("hello""hai");
it  wil print "hellohai"
     

 

Back To Question