can you change name of main()?how?

Answers were Sorted based on User's Feedback



can you change name of main()?how?..

Answer / sindhu

#define my main()
my()
{
printf("hello frnz");
}

Is This Answer Correct ?    14 Yes 7 No

can you change name of main()?how?..

Answer / srinivas aro

#deefine m main
m()
{
printf(" max computers ch.pet guntur disrtct A.P");
}

Is This Answer Correct ?    12 Yes 7 No

can you change name of main()?how?..

Answer / nithya

#define m main
#include<stdio.h>
void m()
{
printf("Hai");
}

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Interview Questions

What is difference between structure and union with example?

0 Answers  


write a program to display the numbers in the following 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4

1 Answers  


int main() { int i=1; switch(i) { case '1': printf("hello"); break; case 1: printf("Hi"); break; case 49: printf("Good Morning"); break; } return 0; }

3 Answers  


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

0 Answers  


how to go with this?

1 Answers   Wipro,






Why isnt any of this standardized in c?

0 Answers  


Is main a keyword in c?

0 Answers  


How we can insert comments in a c program?

0 Answers  


what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }

7 Answers  


How can I access an I o board directly?

0 Answers  


What is the use of static variable in c?

0 Answers  


What is wild pointer in c with example?

0 Answers  


Categories