Sunteți pe pagina 1din 4

6/3/13

Share 0

C program without main function


More Next Blog Create Blog Sign In

C programming questions and answers

C language tricky good pointers questions answers and explanation operators data types arrays structures questions functio recursion preprocessors, looping, file handling, strings questions switch case if else printf advance c linux objective types mc faq interview questions and answers with explanation and solution for freshers or beginners. Placement online written test pr numbers Armstrong Fibonacci series factorial palindrome code programs examples on c c++ tutorials and pdf
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Create projects Sql Server

C, C++, C# courses Aptech 50 lakh students trained already 65 years of expertise www.Aptech-Education.com Citibank Credit Card Rs 1000 Worth Activation Benefits, 10 Times The Reward Points. Apply! citi.com/CreditCard Apply Credit Card Online Get 5%* Cashback or 5X* Rewards. No Joining/Annual* fees. Apply Now apply.standardchartered.co.in

Objective C Programming Programming Tutorial C++ Code


Search

C Code Examples Run C++ Programming


C QUESTIONS AND ANSWERS

C program examples C interview questions and answers Data type questions Variable naming rule questions Operators questions Control flow questions Switch case questions Looping questions Pointer questions String questions Printf,Scanf questions Preprocessor questions Structure questions Commad line argument C questions in Linux C online test C mixed practice sets C tricky questions Example of recursion in c C programming forums
Recommend this on Google

C program without main function

C a ny o uw r i t eacp r o g r a mw i t h o u tu s i n gm a i nf u n c t i o n ?

W ec a nw r i t eacp r o g r a mw i t h o u tu s i n gm a i nf u n c t i o n .W ec a nc o m p i l e b u t w e c a n n o t e x e c u t e a p r o g r a m w i t h o u t a m a i n f u n c t i o n . S i n c e i n e x e c u t i o no fa n yp r o g r a ms t a r tf r o mm a i nf u n c t i o n . E x a m p l e so fc p r o g w i t h o u tam a i ni sa l lt h ecl i b r a r yf u n c t i o n s . F u n c t i o np r i n t fi s e x a m p l eo fl i b r a r yf u n c t i o nw h i c hh a sb e e nw r i t t e na n dc o m p l i e dw i t h u s i n gm a i nf u n c t i o n .T ou s eo rr u ns u c hf u n c t i o n sw ew r i t eo t h e rp r o g u s i n gm a i nf u n c t i o na n dc a l lt h o s ef u n c t i o n s .

7 comments:
denesh 1/4/12, 11:03 PM nice!!!!!!!!!!! Reply

C TUTORIAL

Memory mapping tutorial in c

www.cquestions.com/2011/08/c-program-without-main-function.html

1/4

6/3/13
Variables tutorial in c Data types tutorial in c Storage classes tutorial in c Looping tutorial in c Pointers tutorial in c Function tutorial in c Array tutorial in c Preprocessor tutorial in c Advanced c tutorial

C program without main function


Anonymous 2/1/12, 8:40 PM #include class test { public: test(){ exit(1); }; }; test worker; Reply

POPULAR POSTS

Anonymous 2/25/13, 11:36 PM C program examples C interview questions and answers Check given number is prime number or not using c program MULTIPLICATION OF TWO MATRICES USING C PROGRAM C multiple choice questions and answers pdf Write a c program to reverse a string Find out the perfect number using c program TO FIND FIBONACCI SERIES USING C PROGRAM Program to convert decimal to binary in c QUICK SORT USING C PROGRAM UNMAD 3/30/13, 8:18 PM then plz give the code. Reply hi i am only saying that you r talking about c and using class that does not exist in c Reply

Anonymous 2/27/13, 2:39 PM not possible in gcc compiler Reply

NiTiS 4/27/13, 7:43 AM solution: #include #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("program without main function"); return 0; }

SUBSCRIBE VIA EMAIL

Enter your email address:

Subscribe

Explanation: Delivered by FeedBurner

The macro decode(s,t,u,m,p,e,d) is being expanded as msut (The ## operator merges m, s, u and t into msut) logic is, when you pass (s,t,u,m,p,e,d) as argument it merges the 4th, 1st, 3rd and the 2nd characters (tokens).
C PROGRAMMING QUESTIONS AND ANSWER

C questions and answers Debugging questions in c with answers Aptitude questions and answers in c C basic questions Multiple choice questions in c

Note : we can't write a C program without a main function. Here, we are just playing a gimmick that makes us believe tha program runs without the main, but there actually exists a hidden main function in the program. Here, we are usin pre-processor directive to intelligently replace the word begin by main. In simple words: int begin = int main Reply

Anonymous 5/6/13, 8:33 PM


STANDARD OF QUESTIONS ?

Good work keep it on Reply

SUBSCRIBE TO

www.cquestions.com/2011/08/c-program-without-main-function.html

2/4

6/3/13
Posts Comments

C program without main function

MY HEADLINES

C programming questions and answer C questions and answers Debugging questions in c with answers Aptitude questions and answers in c C basic questions Multiple choice questions in c Objective questions of c Program in c language Simple program example in c language Tricky c questions and answers C programming online test C Linux interview questions and answers Looping questions in c and answers C string questions and answers with explanation C operator questions with answers Check the given number is palindrome number or not using c program C pointers questions Data type questions in c Check given number is prime number or not using c program struct bit fields questions in c C questions answers C interview questions and answers How to test palindrome in c++ Palindrome number in c++ Program of palindrome number in c++ C++ code to get sum of all odd numbers in given range
Grab this Headline Animator

Links to this post


Create a Link Newer Post Subscribe to: Post Comments (Atom)
C Tutorial Function C Program C++ Compiler

Home

SHARE IT

MUST VISIT

ABOUT ME

ritesh kumar View my complete profile

GOOGLE+ BADGE

C LOVER COMMUNITY

www.cquestions.com/2011/08/c-program-without-main-function.html

3/4

6/3/13
Join this site
w ith Google Friend Connect

C program without main function

Copyright@ritesh kumar. Powered by Blogger.

www.cquestions.com/2011/08/c-program-without-main-function.html

4/4

S-ar putea să vă placă și