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
how to capitalise first letter of each word in a given string?
What does double pointer mean in c?
What is a example of a variable?
Is main is a keyword in c?
How can a process change an environment variable in its caller?
What is assignment operator?
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(); }
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
What is boolean in c?
The file stdio.h, what does it contain?
What are the two types of functions in c?
What is the use of bitwise operator?
What is the difference between typedef struct and struct?
Is c call by value?
What is the use of typedef in structure in c?