Whether there can be main inside another main?If so how does
it work?
Answer Posted / divyansh
main marks the beginning of a program, 2 direct mains can't
be there as it will make the compiler dumb!(literally),in
this case it will give an error, or an infinite loop
operation will be executed.
| Is This Answer Correct ? | 21 Yes | 3 No |
Post New Answer View All Answers
What should malloc(0) do?
What are the __date__ and __time__ preprocessor commands?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
In c programming language, how many parameters can be passed to a function ?
Write a program to print "hello world" without using a semicolon?
If errno contains a nonzero number, is there an error?
Why c is procedure oriented?
Write a program to print factorial of given number without using recursion?
What is the use of header?
Is using exit() the same as using return?
What are the keywords in c?
What are disadvantages of C language.
Explain function?
What are the application of c?
What is a rvalue?