Whether there can be main inside another main?If so how does
it work?
Answer Posted / sandeep
Absolutely no .
Because the question asks that whether we can define a main inside other main,they did't ask about we can call main by its self or not.
#include<stdio.h>
void main()
{
void main()
{
printf("main");//un ambigious
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is typeof in c?
Explain what is the most efficient way to store flag values?
Explain how do you declare an array that will hold more than 64kb of data?
In a switch statement, explain what will happen if a break statement is omitted?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
What are bitwise shift operators in c programming?
What is function pointer c?
Are enumerations really portable?
How do you search data in a data file using random access method?
Explain what are linked list?
What are structural members?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What is the sizeof () operator?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
How is actual parameter different from the formal parameter?