GeekInterview.com
  I am new, Sign me up!
 

TCS C


TCS C

Questions: 87
Comments: 301
 TCS C Tags
 Showing Questions 51-60 of 87 Questions
<< Previous 2 3 4 5 [6] 7 8 9 Next >>
 Sponsored Links

 
 TCS C
Sorting Options :  

What is incorrect among the followingA recursive functionA. calls itselfB. is equivalent to a loopC. has a termination conditionD. does not have a return value at all

Which of the following go out of the loop if expn 2 becoming falseA. 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;..}

Consider the following programmain(){unsigned int i=10;while(i>=0)  {   printf("%u",i)   i--;   }}How many times the loop will get executedA.10B.9C.11D. infinite

Latest Answer: ya answer is FREE() bczmalloc() is used to allocate single block of memorycalloc()  is used to allocate multible blocks of memoryrealloc() is used to reallocate the allocated memorybut free()is used to deallocate the memory ...

Consider the following programmain(){int a[5]={1,3,6,7,0};int *b;b=&a[2];}The value of b[-1] isA. 1B. 3C. -6D. none

# define prod(a,b)=a*bmain(){int x=2;int y=3;printf("%d",prod(x+2,y-10));}the output of the program isA. 8B. 6C. 7D. None

Consider the following program segmentint n, sum=1;switch(n){case 2:sum=sum+2;case 3:sum*=2;break;default: sum=0;}If n=2, what is the value of sumA. 0B. 6C. 3D. None of these

Identify the incorrect one1.if(c=1)2.if(c!=3)3.if(a

Latest Answer: ans:C)%x ...

Find the output of the following programmain(){int x=5, *p;p=&xprintf("%d",++*p);}A. 5B. 6C. 0D. none of these

View page << Previous 2 3 4 5 [6] 7 8 9 Next >>

Ask A Question
Go Top
 Sponsored Links

 
Sponsored Links

 
Ask Question
You must login to Ask Question or Register your free account

Category:

 
Question Title:


Question in Detail:

Add this to my Subscribed Questions (?)
Send me email when new answer is posted (?)

 
Subscribe
Get Latest Updates Via RSS Reader or by Email
 Forum Discussion Subscribe to Forum Discussions Via E-Mail Latest Forum Discussions Subscribers
 Knowledge Base Subscribe to Knowledge Base Series Via E-Mail Knowledge Base Subscribers
 Learning Series Subscribe to GeekInterview Learning Series Via EMail Learning Series Subscribers
 Freelance Jobs Subscribe to GeekInterview Freelance Jobs Via EMail Latest Freelance Jobs Subscribers
 GeekInterview Blog Subscribe to GeekInterview Blog Via EMail GeekInterview Blog Subscribers
 Testing Interview Questions Subscribe to Testing Interview Questions Via EMail Testing Interview Questions Subscribers
 Oracle Interview Questions Subscribe to Oracle Interview Questions Via EMail Oracle Interview Questions Subscribers
 Java Interview Questions Subscribe to Java Interview Questions Via EMail Java Interview Questions Subscribers
 Latest Placement Papers Subscribe to Latest Placement Papers Placement Papers Subscribers
 Free Training Subscribe to Free Training Via EMail Free Training Subscribers
 Learn AJAX Subscribe to AJAXwith.com Via EMail AJAXwith Subscribers
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape