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 queue in c?

0 Answers  


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

0 Answers   Oracle,


Do you know the difference between malloc() and calloc() function?

0 Answers  


Write a program to reverse a string.

0 Answers   Global Logic, iNautix, TCS, Wipro,


What is 2c dna?

0 Answers  






Write a function that accepts two numbers,say a and b and makes bth bit of a to 0.No other bits of a should get changed.

2 Answers   Scientific Atlanta, Wipro,


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

0 Answers  


Study the Following Points: a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static 1. Which of the Following Statements are true w.r.t Bit- Fields A)a,b&c B)Only a & b C)Only c D)All

3 Answers   Accenture,


What is the scope of static variables?

1 Answers  


totally how much header files r in c language

8 Answers   TCS,


void main() { int a=1; printf("%d %d %d",a,++a,a++); } the output is supposed to be 1 2 2....but it is 3 3 1 this is due to calling conventions of C. if anyone can explain me how it happens?

7 Answers  


What is the difference between class and object in c?

0 Answers  


Categories