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...


can v write main()
{
main();
}
Is it true?

Answers were Sorted based on User's Feedback



can v write main() { main(); } Is it true?..

Answer / manish soni bca 3rd year jaipu

it is recursive function.
here is no condition is apply so
the result is
infintely.
and after that 'the statck memory flow'.
conditio is start.


manish soni tagore bio tech collage,
jaipur

Is This Answer Correct ?    2 Yes 0 No

can v write main() { main(); } Is it true?..

Answer / satya

k.. but what is the result.. i want some explanation... is
not it be recurssive..

Is This Answer Correct ?    2 Yes 1 No

can v write main() { main(); } Is it true?..

Answer / sharath

yes we can write

Is This Answer Correct ?    5 Yes 5 No

can v write main() { main(); } Is it true?..

Answer / sharath

yes it becomes a recursive function
we have to specify any condition using a loop or any decision block so that the loop doesnot call the main() function again.

Is This Answer Correct ?    1 Yes 1 No

can v write main() { main(); } Is it true?..

Answer / sharath

what do you think as you oppposed the answer
can you please explain it
please..

Is This Answer Correct ?    0 Yes 0 No

can v write main() { main(); } Is it true?..

Answer / sharath

yes u are right
there is no condition and the result is an infinite loop which continues till the stack overflow after that it may hang..

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); } wat is the o/p and how?

12 Answers   Tech Mahindra,


find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); }

10 Answers   Amdocs, TCS,


can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance

1 Answers   IBM,


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

0 Answers   Infosys,


Are pointers really faster than arrays?

0 Answers  


Is c weakly typed?

0 Answers  


Implement a function that returns the 5th element from the end in a singly linked list of integers in one pass.

11 Answers   Microsoft,


c program for searching a student details among 10 student details

0 Answers  


in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?

2 Answers   NetApp,


In a switch statement, what will happen if a break statement is omitted?

0 Answers  


print a "hello" word without using printf n puts in c language

6 Answers  


What does 3 periods mean in texting?

0 Answers  


Categories