Is it possible to run a c program without using main?If yes
HOW??

Answer Posted / ramabrahmam

hi adesh,
your logic is not suited to numbers.
suppose, if we write "printf" as
for two integers a,b
printf("sum of a and b is",a+b);
for this statement it only displaying the letters
within the double quotes.i.e., sum of a and b is .
it is not displaying anything after that.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to capitalise first letter of each word in a given string?

1428


What does double pointer mean in c?

573


What is a example of a variable?

551


Is main is a keyword in c?

602


How can a process change an environment variable in its caller?

648






What is assignment operator?

620


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

1855


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

632


What is boolean in c?

603


The file stdio.h, what does it contain?

665


What are the two types of functions in c?

562


What is the use of bitwise operator?

683


What is the difference between typedef struct and struct?

594


Is c call by value?

599


What is the use of typedef in structure in c?

538