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
What is stack in c?
How is a null pointer different from a dangling pointer?
What is difference between scanf and gets?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What do you mean by a local block?
Is main an identifier in c?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
what do you mean by enumeration constant?
Explain the properties of union.
Explain modulus operator.
What is a function simple definition?
What is calloc() function?
What is echo in c programming?
What is the use of extern in c?
What is the return type of sizeof?