ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
why we shiuld use main keyword in C
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: why we shiuld use main keyword in C
Answer
# 1
main is a keyword which tells the compiler that actual 
program starts from here.
 
Is This Answer Correct ?    1 Yes 3 No
Siddiqui Mohd. Faisal
 
  Re: why we shiuld use main keyword in C
Answer
# 2
It invokes the other functions defined in the program.
It provides the starting address for the funtion.
 
Is This Answer Correct ?    1 Yes 1 No
Shireesha
 
 
 
  Re: why we shiuld use main keyword in C
Answer
# 3
main() is the important part of the programe.

main() defines scope of the programe and all working in 
this scop means execute the programe in between this block

all programe execution with the main() function.
 
Is This Answer Correct ?    2 Yes 0 No
Nirmal Kumar Tailor
 
  Re: why we shiuld use main keyword in C
Answer
# 4
Every C program should have at least one function.main() is
special function, from here the actual execution of the
program starts. main() is one which calls all other
functions and helps to do their job.The functions may from
library or user defined.
 
Is This Answer Correct ?    1 Yes 1 No
Gg
 
  Re: why we shiuld use main keyword in C
Answer
# 5
main() is the enty point of all the application ,and  is the
special function because it is invoked by the OS
routines,through this function we can call any function.So
every application must contain main() function.
 
Is This Answer Correct ?    1 Yes 0 No
Raj
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
How do I initialize a pointer to a function?  2
find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); } TCS4
What is the difference between null pointer and void pointer CTS3
program for validity of triangle from 3 side  6
How can I convert integers to binary or hexadecimal?  2
What's the difference between struct x1 { ... }; and typedef struct { ... } x2; ?  3
how to add numbers without using arithmetic operators. TCS10
whether itis a structured language? Microsoft1
How the processor registers can be used in C ? HP4
difference between function & structure Verizon5
I have an array of 100 elements. Each element contains some text. i want to: append a star character to the end of every fifth element remove every second character from every tenth element, and… add a line feed (ascii 10) after the 30th character of every array element whose length is greater than 30 characters.  1
What is the difference between constant pointer and pointer to a constant. Give examples. TCS4
Write a program to compute the following 1!+2!+...n!  3
write a c programs to do multiplication of two numbers with out using arithmatic operator ?????????? TCS4
Is it possible to create recycle bin in mobiles?  2
44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?  3
long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes HCL11
Can I pass constant values to functions which accept structure arguments?  2
What are the commands should be given before weiting C Program i.e, Cd.. like Infonet3
What are bit fields? What is their use? Adobe1
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com