Is it possible to run a c program without using main?If yes
HOW??

Answer Posted / swetha

void add(int a,int b)
{
int c;
c=a+b;
printf("%d",c);
}

Is This Answer Correct ?    2 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can arithmetic operations not be performed on void pointers?

594


What is a 'null pointer assignment' error?

728


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

762


How can I sort a linked list?

639


How will you divide two numbers in a MACRO?

715






Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1484


What is a good way to implement complex numbers in c?

600


What is memcpy() function?

624


What is string length in c?

618


What are logical errors and how does it differ from syntax errors?

663


why do some people write if(0 == x) instead of if(x == 0)?

658


Explain how do I determine whether a character is numeric, alphabetic, and so on?

658


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

656


Explain the process of converting a Tree into a Binary Tree.

2111


What is sizeof int in c?

608