Hi,
main()
{
}
Is a user defined function or Built in Functionn
Answer Posted / pravat kumar patra
main() is a user defind function.because we write some codes
inside main to perform certain task.but in case of sqrt() if
write the function in a program it executes.but we have not
to write the function body.
consider the case:-
void main() void main()
{ {
printf("hello"); inti=25,p=sqrt(i);
} printf("%d",p);
}
use header file math.h.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
What are register variables in c?
Explain the term printf() and scanf() used in c language?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
When do we get logical errors?
Is the exit() function same as the return statement? Explain.
What is register variable in c language?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What is a structure member in c?
Explain what is operator promotion?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
What is the difference between array and linked list in c?
Can a variable be both static and volatile in c?
program to convert a integer to string in c language'