Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 program to display the no of bit difference between any 2 given numbers eg: Num1 will 12->1100 Num2 will 7->0111 the difference in bits are 2.

4 Answers  


What are the types of type specifiers?

0 Answers  


How can you return multiple values from a function?

0 Answers  


Expand the following LKB BKL FFG

0 Answers  


why integer range between -327680to+32767

2 Answers  


What is a const pointer?

0 Answers  


Read two numbers from keyboard and find maximum of them?

1 Answers  


WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?

4 Answers  


What are register variables in c?

0 Answers  


main() { int i; printf("%d",scanf"%d",&i))//if the input is 12 24 34 then wat will be the output }

2 Answers  


can we write a c program with out using main

3 Answers  


What is actual argument?

0 Answers  


Categories