C
Programming and Technical
Programming
Program
write a program without using main in c?
Read Solution (Total 7)
-
- #include
#include
#define start main
void start()
{
printf("HELLO WORLD");
getch();
} - 10 years agoHelpfull: Yes(10) No(0)
- #include
#include
#define decode(a,b,c,d) a##b##c##d //## merge operator
#define begin decode(m,a,i,n)
int begin()
{
printf(" hello ");
getch();
} - 10 years agoHelpfull: Yes(4) No(0)
- #include
#include
#define start main
void start()
{
printf("HELLO WORLD");
getch();
} - 10 years agoHelpfull: Yes(0) No(0)
- Using #pragma we can write a code and execute without main in c. For more go to google.
- 10 years agoHelpfull: Yes(0) No(1)
- #define decode(k,l,s,t) l##t##s##k
void decode(n,m,i,a)()
{
printf("hello");
} - 10 years agoHelpfull: Yes(0) No(0)
- #include
#define merg(a,b,c,d) b##a##c##d
#define start merg(m,a,i,n)
void start()
{
printf("I Love myself");
} - 9 years agoHelpfull: Yes(0) No(0)
- #include
#include
#define start main
void start()
{
clrscr();
int a=10,b=50,c;
c=a+b;
printf("%d",c);
getch();
}
- 9 years agoHelpfull: Yes(0) No(0)
C Other Question