Is it possible to run a c program without using main?If yes
HOW??
Answers were Sorted based on User's Feedback
Answer / valli
in linux while compilation we u mention -nostartfiles it
will work
#include<stdio.h>
abc()
{
printf("hello");
}
| Is This Answer Correct ? | 9 Yes | 13 No |
Answer / swetha
void add(int a,int b)
{
int c;
c=a+b;
printf("%d",c);
}
| Is This Answer Correct ? | 2 Yes | 14 No |
Toggle nth bit in a given integer - num
What is external variable in c?
what is difference between procedural language and functional language ?
What does char * * argv mean in c?
Explain command-line arguments in C.
What is LINKED LIST? How can you access the last element in a linked list?
enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; void main() { int i =0; if( i == sunday) { printf("%d",i); } } what would be the output?
What are control structures? What are the different types?
Explain what are the different data types in c?
what is the maximum no. of bytes calloc can allocate
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What is the benefit of using #define to declare a constant?