can we write a c program with out using main
Answers were Sorted based on User's Feedback
Answer / durga mahesh
Say Big Nooooooooooooooooo..........
Its never ever possible bcoz when a program is compiled the compiler always looks for the entry of the program initially(this is the first and foremost action performed by compier)
In c,main() is the entry section...exectuion begins only after main is checked....
| Is This Answer Correct ? | 20 Yes | 12 No |
Answer / arun kumar
#include<stdio.h>
#include<conio.h>
#define decode(s,t,u,m,p,e,d) m##s##u##t
#define begin decode(a,n,i,m,a,t,e)
int begin()
{
printf(" hello ARUN");
getch();
}
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / kamini
#include<stdio.h>
#include<conio.h>
#define decode(s,t,u,m,p,e,d) m##s##u##t
#define begin decode(a,n,i,m,a,t,e)
void begin()
{
printf(" hello ARUN");
getch();
}
Ans was correct but if the function is declare int dn it has to be return some value so it should be void.
| Is This Answer Correct ? | 0 Yes | 0 No |
If the static variable is declared as global, will it be same as extern?
What is the deal on sprintf_s return value?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
how can i include my own .h file EX:- alex.h like #include<alex.h>, rather than #include"alex.h"
How was c created?
Can an array be an Ivalue?
What is the meaning of 2d in c?
What is the most efficient way to count the number of bits which are set in an integer?
Explain about block scope in c?
Give me the code of in-order recursive and non-recursive.
What is pointers in c with example?
What functions are used in dynamic memory allocation in c?