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 |
5) Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.without using big int and exponential function
Ca some one please help me with aC code to allow user enter numbers from 1 to 20 without repeating and prnt the sum of those numbers thnx
What is malloc and calloc?
What is the maximum no. of arguments that can be given in a command line in C.?
What is static volatile in c?
What is the difference between volatile and const volatile?
What does & mean in scanf?
What is the correct declaration of main?
What is the process of writing the null pointer?
Can a pointer be volatile in c?
the question is that what you have been doing all these periods (one year gap)
write c program without semicolon
11 Answers MindTech, TCS, Wipro,