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 the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
How many levels of indirection in pointers can you have in a single declaration?
What are variables c?
What is NULL pointer?
What is a constant and types of constants in c?
What is the purpose of macro in C language?
What is the difference between int main and void main in c?
what is ur strangth & weekness
What is switch in c?
What is function prototype in c language?
What is a spanning Tree?
Is it possible to pass an entire structure to functions?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???