how to create c progarm without void main()?
Answer / surya bhagavan s
#include<stdio.h>
#include <unistd.h>
_start()
{
_exit(my_main());
}
int my_main(void)
{
printf("Hello\n");
return 42;
}
for compilation
gcc -o3 -nostartfiles example.c
| Is This Answer Correct ? | 2 Yes | 7 No |
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
Why header file is used in c?
What is a macro, and explain how do you use it?
What is the collection of communication lines and routers called?
Is c is a high level language?
write a program in 'c' to find the value of p[i+1]^n.p,i,n are arguments of a macro and n is a integer
Tell me a C program to display the following Output? 1 1 1 1 1 2 2 2 2 3 3 3 4 4 5
What is spaghetti programming?
What is 'bus error'?
What is pass by reference in c?
What are runtime error?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above