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

What is a spanning Tree?

1 Answers   TCS,


What is pointers in c?

0 Answers  


What is the size of enum in bytes?

0 Answers  


What is the scope of static variables in c language?

0 Answers  


How do you print only part of a string?

0 Answers  


Write a program to print prime nums from 1-20 using c programing?

13 Answers   IBM,


can we initialize all the members of union?

2 Answers  


How do you use a 'Local Block'?

0 Answers   Ericsson,


What is getch?

0 Answers  


Which header file is essential for using strcmp function?

0 Answers  


What is #line?

0 Answers  


What is Conio.h ?

2 Answers   TCS,


Categories