main is a predefined or user define function
if user defined why?
if predefined whay?

Answer Posted / sandeep kumar yadav

the definition of main is given by the user so it is called
user define function..
the prototype is define by the compiler so it is called
predefine...
this function is dependent on both user and compiler for
the execution of the program.so it is not only user define
or predefine..
so we can say it is a special function called by operating
system to execute the program.

Is This Answer Correct ?    22 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does notstrcat(string, "!");Work?

637


Once I have used freopen, how can I get the original stdout (or stdin) back?

620


Explain the difference between call by value and call by reference in c language?

641


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

627


What is a method in c?

622






A set of N billiard balls are set on a one-dimensional table. The table is 1 meter long, set north-south with two pockets at either side. Each ball has zero width and there is no friction so it is moving with a fixed velocity of either northward or southward and bounces back in a perfect elastic collision from other balls it encounter on its way (or drop into one of the pockets). Your job is to keep track of the balls movements. Task Please write a program that gets the initial place, speed and direction of all the balls and gives the position of a specific ball after t seconds. Input The first line contains the number of scenarios. Each one of the other lines in the input contains a scenario: The first number, N, is the number of balls; followed by N pairs of numbers: the distance in centimeters from the south end of the table and the speed (positive speed meaning it moves northward); the last two numbers are the number i of the target ball you should track and the time T in seconds. Output The output is a single number for each line which is the place (distance in centimeters from the south end of the table) of the tracked ball after T seconds. Note: There is no new line character at the end of the result. Sample Input 5 1 50 1 1 1000 1 50 1 1 6 1 60 -2 1 6 2 10 1 95 -1 2 30 2 10 1 95 -1 2 60 Sample Output 100 56 48 65 70

2125


Is there sort function in c?

574


How many main () function we can have in a project?

608


what will be maximum number of comparisons when number of elements are given?

1406


Explain about the constants which help in debugging?

843


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

1759


How many bytes is a struct in c?

721


Who invented b language?

911


What is a good data structure to use for storing lines of text?

590


How many loops are there in c?

574