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

Answers were Sorted based on User's Feedback



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

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

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

Answer / swetha

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

Is This Answer Correct ?    2 Yes 14 No

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

Answer / rupali yadav

no

Is This Answer Correct ?    5 Yes 21 No

Post New Answer

More C Interview Questions

Write a function to find the area of a triangle whose length of three sides is given

2 Answers  


what is c++ programming?

3 Answers   TCS,


when to use : in c program?

2 Answers  


What are the string functions? List some string functions available in c.

0 Answers  


Table of Sudoku n*n

0 Answers  






what does data structure mean?

8 Answers  


What is spark map function?

0 Answers  


Concat two string with most overlapped substring has to removeĀ  "abcd"+ "cdef" = "abcdef

6 Answers  


please send me papers for Dy. manager IT , PNB. it would be a great help for me.

0 Answers  


Write a program to use switch statement.

0 Answers   Agilent, Integreon, ZS Associates,


What are runtime error?

0 Answers  


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

0 Answers  


Categories