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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
If "AaBbCc" is passed to the char

char x(*a)
{
a[0]?x(a+1):1;
printf("%c",a[0]);
return 1;
}
what will be the output?
 Question Submitted By :: Harish
I also faced this Question!!     Rank Answer Posted By  
 
  Re: If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",a[0]); return 1; } what will be the output?
Answer
# 1
the output will b cCbBaA
 
Is This Answer Correct ?    1 Yes 0 No
Fazlur Rahaman Naik
 
  Re: If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",a[0]); return 1; } what will be the output?
Answer
# 2
bBcCbBaA
 
Is This Answer Correct ?    0 Yes 1 No
Roopa
 
 
 
  Re: If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",a[0]); return 1; } what will be the output?
Answer
# 3
cCbBaA
 
Is This Answer Correct ?    1 Yes 0 No
Roopa
 
  Re: If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",a[0]); return 1; } what will be the output?
Answer
# 4
cba
 
Is This Answer Correct ?    0 Yes 1 No
Roopa
 
  Re: If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",a[0]); return 1; } what will be the output?
Answer
# 5
Recursion based question........

Output wil be

             cCbBaA
 
Is This Answer Correct ?    1 Yes 0 No
Ravi Saini
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
difference of two no's with out using - operator  4
What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these IBM2
void main() { int i=5; printf("%d",i+++++i); } ME12
Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;  4
what is the advantage of software development  1
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+.... Ignou1
pgm to reverse string using arrays i.e god is love becomes love is god) (assumption:only space is used for seperation of words) no addtional memory used.i.e no temporary arrays can used. Persistent2
fun(int x) { if(x > 0) fun(x/2); printf("%d", x); } above function is called as: fun(10); what will it print? } NDS12
what is the differnce between AF_INET and PF_INET? Wipro1
what is difference between ++(*p) and (*p)++ Accenture12
what is the function of void main()?  4
fn f(x) { if(x<=0) return; else f(x-1)+x; } HCL3
without a terminator how can we print a message in a printf () function. NIIT3
In scanf h is used for BFL2
How would you print out the data in a binary tree, level by level, starting at the top?  3
How the processor registers can be used in C ? HP4
how to estimate the disk access time? e.g. the time between read one byte and another byte in the disk. Google3
what is the use of using linked list and array? Infosys8
how many error occurs in C language ? Wipro9
What is memmove? Oracle1
 
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