why we shiuld use main keyword in C
Answers were Sorted based on User's Feedback
Answer / siddiqui mohd. faisal
main is a keyword which tells the compiler that actual
program starts from here.
| Is This Answer Correct ? | 16 Yes | 8 No |
Answer / nirmal kumar tailor
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 ? | 8 Yes | 1 No |
Answer / shireesha
It invokes the other functions defined in the program.
It provides the starting address for the funtion.
| Is This Answer Correct ? | 8 Yes | 3 No |
Answer / gg
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 ? | 4 Yes | 2 No |
Answer / raj
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 ? | 4 Yes | 3 No |
What is the process of writing the null pointer?
print the pattern 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 if n=5
int main() { int x = (2,3,4); int y = 9,10,11; printf("%d %d",x,y); } what would be the output?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
WAP to find that given no is small or capital
Explain the difference between malloc() and calloc() in c?
What is pointer and structure in c?
Write a program for print infinite numbers
what is the output of the following program and explain the answer #include<stdio.h> exp() { main(5) } main(int a) { printf("%d",a); return; }
can you change name of main()?how?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
How can type-insensitive macros be created?