GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  TCS  >  C
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 24 of 87    Print  
what is incorrect among teh following
A recursive functiion
a.calls itself
b.is equivalent to a loop
c.has a termination cond
d.does not have a return value at all
B



  
Total Answers and Comments: 1 Last Update: September 13, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 12, 2007 03:35:13   #1  
Meena Goel        

RE: what is incorrect among teh followingA recursive functiiona.calls itselfb.is equivalent to a loopc.has a termination condd.does not have a return value at all
The last one statement does not have a return value at all is wrong. Because a recursive function return always a value to itself. It can return a value.
 
Is this answer useful? Yes | No

 Related Questions

What is true about the followingC Functionsa.Need not return any valueb.Should always return an integerc.Should always return a floatd.Should always return more than one value.

Write one statement equivalent to the following two statementsx=sqr(a);return(x);Choose from one of the alternativesa.return(sqr(a));b.printf("sqr(a)");c.return(a*a*a);d.printf("%d",sqr(a));

Which of the following about the C comments is incorrect ?a.commentscan go over multiple linesb.comments can start any where in the linec.a line can contain comments with out any language statementsd.comments can occur within comments

Read the function conv() given belowconv(int t){int u;u=5/9 * (t-32);return(u0;}What a.15b.0c.16.1d.29

Which of the following is not an infinite loop ?a.while(1){....}b.for(;;){...}c.x=0;do{/*x unaltered within the loop*/...}while(x==0);d.# define TRUE 0while(TRUE){....}

What does the following function print?func(int i){if(i%2)return 0;eale return 1;}main(){int =3;i=func(i);i=func(i);printf("%d",i);}a.3b.1c.0d.2

Given the piece of codeint a[50];int *pa;pa=a;to access the 6th element of the array which of the following is incorrect?a.*(a+5)b.a[5]c.pa[5]d.*(*pa + 5)

Regarding the scope of the varibles;identify the incorrect statement:a.automatic variables are automatically initialised to 0b.static variables are are automatically initialised to 0c.the address of a register variable is not accessiabled.static variables cannot be initialised with any expression

Cond 1?cond 2?cond 3?:exp 1:exp 2:exp 3:exp 4;is equivalent to which of the following?a.if cond 1exp 1;else if cond 2exp 2;else if cond 3exp 3;elseexp 4;b.if cond 1if cond 2if cond 3exp 1;else exp 2;else exp 3;else exp 4;c.if cond 1 && cond 2 && cond 3exp 1 |exp 2|exp 3|exp 4; d.if cond 3exp 1;else if cond 2exp 2;else if cond 3exp 3;elseexp 4;

Latest Answer : answer is 5 times ...


 Sponsored Links

 
Related Articles

printf() Function Return Value

What is the return value from printf() function? printf function always returns the number of characters printed. Let us understand this with an example: main() { int a=10; printf("%d",printf("%d %d %d", a,a,a)); } In this above program the inner printf i
 

What is the default return value of a function?

The default return value from a function is int. In other words, unless explicitly specified the default return value by compiler would be integer value from function.   When a programmer wants other than integer values to be returned from function then it is essential that the pro
 

exit and return statements

  How does the exit () and return () differ exit () is used to exit the program as a whole. In other words it returns control to the operating system. After exit () all memory and temporary storage areas are all flushed out and control goes out of program. In contrast, the return () stateme
 

How To Save Time When Dealing With Phone Calls

How To Save Time When Dealing With Phone Calls While talking on the phone with clients can be important it can also waste your time if you don t know how to keep it under control Being able to properly handle phone calls will allow you to spend more time focusing on things which are important mosgoo
 

Basic Facts on Wrongful Termination

Wrongful termination is not just a term referred to the act of firing an individual who seemed to be an asset of the company. Unfortunately the law provides a little bit of leeway more to business owners than to employees. There are provisions that actually allow business owners to terminate an empl
 

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