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...


can we write a c program with out using main

Answers were Sorted based on User's Feedback



can we write a c program with out using main..

Answer / durga mahesh

Say Big Nooooooooooooooooo..........
Its never ever possible bcoz when a program is compiled the compiler always looks for the entry of the program initially(this is the first and foremost action performed by compier)
In c,main() is the entry section...exectuion begins only after main is checked....

Is This Answer Correct ?    20 Yes 12 No

can we write a c program with out using main..

Answer / arun kumar

#include<stdio.h>
#include<conio.h>
#define decode(s,t,u,m,p,e,d) m##s##u##t
#define begin decode(a,n,i,m,a,t,e)

int begin()
{
printf(" hello ARUN");
getch();
}

Is This Answer Correct ?    6 Yes 2 No

can we write a c program with out using main..

Answer / kamini

#include<stdio.h>
#include<conio.h>
#define decode(s,t,u,m,p,e,d) m##s##u##t
#define begin decode(a,n,i,m,a,t,e)

void begin()
{
printf(" hello ARUN");
getch();
}

Ans was correct but if the function is declare int dn it has to be return some value so it should be void.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

can anyone please tell me wat is backlogs... i was looking for the job openings where i read this.. eligibility criteria minimum 70% in degree without backlogs. is that arrear.. if so is it standing arrear or history of arrears... please help me...

11 Answers   CTS, Indian Navy, L&T, Microsoft, SSB, TCE, TCS,


What are the types of functions in c?

0 Answers  


What is void pointers in c?

0 Answers  


write a program of palindrome(madam=madam) using pointer?

5 Answers   L&T,


What is meant by preprocessor in c?

0 Answers  


What are c preprocessors?

0 Answers  


What is the purpose of ftell?

0 Answers  


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

0 Answers  


What is a void * in c?

0 Answers  


What are dangling pointers? How are dangling pointers different from memory leaks?

1 Answers  


Is main an identifier in c?

0 Answers  


from which concept of 'c', the static member function of 'c++' has came?

1 Answers   Bosch,


Categories