with out using main how to execute the program?
Answers were Sorted based on User's Feedback
Answer / pradeep
It is not a c program if it is not using main function.
Compiler starts execution from main function always.
Is This Answer Correct ? | 18 Yes | 4 No |
Answer / sagar
In any C program, it must contain main function..........
So, it is not possible to run any program without main
function .......
Is This Answer Correct ? | 5 Yes | 5 No |
main() {int i=5; // line 1 i=(++i)/(i++); // line 2 printf("%d",i); // line 3 } output is 2 but if we replace line 2 and line 3 by printf("%d",i=(++i)/(i++)); then output is 1. Why?
Explain what are run-time errors?
How is null defined in c?
Can math operations be performed on a void pointer?
pgm in c to reverse string by word using array(god is love becomes love is god) (no additional array can used,space is only delimiter between words )
Print all the palindrome numbers.If a number is not palindrome make it one by attaching the reverse to it. eg:123 output:123321 (or) 12321
Write a C program to print 1 2 3 ... 100 without using loops?
main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }
What is n in c?
What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==you) printf("love c"); else printf("know c"); }
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
write a program to insert an element at the specified position in the given array in c language