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 |
Can two or more operators such as and be combined in a single line of program code?
what does " calloc" do?
which will be first in c compiling ,linking or compiling ,debugging.
How. To pass the entrance test
What is Full Form of C and Why We use C
What is anagram in c?
write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+
which is faster execution: loops or recursion?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
Why is structure important for a child?
How the processor registers can be used in C ?
write a program wch produces its own source code aas its output?