Is main() is used in the program,,see below example?
void main()
{
int i;
for(i=0;i<10;i++)
main();
}
Then what is the output of the program?
Answer Posted / hari
it will go into an infinite loop.
cheers !!!
for further queries and discussions, just check these out !!!
http://forum.campusmaniac.com/
http://www.campusmaniac.com/
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can you please explain the difference between strcpy() and memcpy() function?
Write a code to generate divisors of an integer?
What is struct node in c?
Place the #include statement must be written in the program?
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]
What is a ternary operator in c?
What is the data segment that is followed by c?
Does c have enums?
Difference between linking and loading?
Explain a file operation in C with an example.
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
Explain what is a pragma?
What are the disadvantages of c language?
Does free set pointer to null?
Write a factorial program using C.