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 |
What is struct node in c?
What is the o/p of the follow pgm? #include<stdio.h> main() { char char_arr[5]=”ORACL”; char c=’E’; prinf(“%s\n”,strcat(char_arr,c)); } a:oracle b. oracl c.e d.none
hi, which software companys will take,if d candidate's % is jst 55%?
In a switch statement, what will happen if a break statement is omitted?
#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?
Find errors (1) m = ++a*5; (2) a = b ++ -c*2; (3)y = sqrt (1000);
When should I declare a function?
can we write a program in c for printf and scanf without using header file stdio.h
What is spark map function?
Do you know null pointer?
A program to write a number of letters and numbers, such as counting and display
What is the importance of c in your views?