ALLInterview.com :: Home Page KalAajKal.com
 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   To Refer this Site to Your Friends   Click Here
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
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;..}
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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;..}
Answer
# 1
d
 
Is This Answer Correct ?    0 Yes 0 No
Mannucse
[Kiona]
 
  Re: 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;..}
Answer
# 2
c) Since expn2 becoming false will terminate do-while loop.
 
Is This Answer Correct ?    2 Yes 0 No
Jai
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
write a program to search for an element in a given array. If the array was found then display its position otherwise display appropriate message in c language  3
void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case TCS7
logic for generating all the combinations of the any number of given letters. ex::::::::: if a,b,c,d are given the o/p should be abcd,dcba,dbac,bcad,................ 4*3*2*1 combinations............ Infosys2
write a C program to print the program itself ?! TCS11
what is available in C language but not in C++?  1
how to implement stack work as a queue?  2
program to get the remainder and quotant of given two numbers with out using % and / operators? IBM8
wt is d full form of c Wipro1
What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack  5
How can I find out how much memory is available? Persistent1
Can I pass constant values to functions which accept structure arguments?  2
How to avoid structure padding in C? Tech-Mahindra4
how to do in place reversal of a linked list(singly or doubly)?  2
long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes HCL11
What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); } ADITI3
Name the language in which the compiler of "c" in written? Bajaj1
#include <stdio.h> #define sqr(x) (x*x) int main() { int x=2; printf("value of x=%d",sqr(x+1)); } What is the value of x? Oracle13
write a recursive program in'c'to find whether a given five digit number is a palindrome or not  1
a memory of 20 bytes is allocated to a string declared as char *s then the following two statements are executed: s="Etrance" l=strlen(s); what is the value of l ? a.20 b.8 c.9 d.21 TCS4
How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?  1
 
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 © 2007  ALLInterview.com.  All Rights Reserved.

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