Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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);}

Answers were Sorted based on User's Feedback



what does the following function print? func(int i) { if(i%2)return 0; eale return 1..

Answer / fazlur rahaman naik & praneeth

the answer will b 1.

Is This Answer Correct ?    26 Yes 3 No

what does the following function print? func(int i) { if(i%2)return 0; eale return 1..

Answer / manju

The code returns error as i is undeclared see in main int
=3 and instead of else eale is used.

Is This Answer Correct ?    13 Yes 1 No

what does the following function print? func(int i) { if(i%2)return 0; eale return 1..

Answer / ravinderreddy

answer will be 0 not 1

Is This Answer Correct ?    11 Yes 3 No

what does the following function print? func(int i) { if(i%2)return 0; eale return 1..

Answer / shruti

if eale is else
and
int = 3 is int i = 3

then,

the answer is 1...

Is This Answer Correct ?    7 Yes 3 No

what does the following function print? func(int i) { if(i%2)return 0; eale return 1..

Answer / ravinderreddy

1 only

Is This Answer Correct ?    5 Yes 2 No

what does the following function print? func(int i) { if(i%2)return 0; eale return 1..

Answer / shrinidhi

in the question in 'func' function there is a word 'eale'.
what u mean by that? if it is 'else' then the ans is "1".

Is This Answer Correct ?    4 Yes 2 No

what does the following function print? func(int i) { if(i%2)return 0; eale return 1..

Answer / mahi

The code returns error as i is undeclared see in main
int =3 and
instead of
else eale is used.

Is This Answer Correct ?    1 Yes 0 No

what does the following function print? func(int i) { if(i%2)return 0; eale return 1..

Answer / anilkumar927@gmail.com

It gives errors and warring……….. those are as follows:
1) i is not declared in main function
2) Return type of func is not mentioned
3) eale is wrong in the func function

if every thing is correct in the QNS then
i hope that the ans is "zero"

Is This Answer Correct ?    4 Yes 4 No

what does the following function print? func(int i) { if(i%2)return 0; eale return 1..

Answer / suresh reddy

Answer is 3

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More C Interview Questions

what is a function method?give example?

0 Answers  


what is self refrential structure

3 Answers   HCL,


Why do we use & in c?

0 Answers  


how to find turn around time in operating system?

3 Answers  


write a program without using main function?

2 Answers   TCS,


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

0 Answers   Infosys,


how does the C compiler interpret the following two statements p=p+x; q=q+y; a. p=p+x; q=q+y b. p=p+xq=q+y c. p=p+xq; q=q+y d. p=p+x/q=q+y

2 Answers   TCS, Tech Synergy,


How do you use a 'Local Block'?

0 Answers   Ericsson,


can we implement multi-threads in c.

0 Answers  


What is the scope of static variables?

1 Answers  


Explain 'bus error'?

0 Answers  


What are the different types of control structures in programming?

0 Answers  


Categories