Is main() function predfined or userdefined?

Answer Posted / subodh sharma

The main function is predefine and have three arguments
which return the value to the operating system and main is
also called by operating system .

Is This Answer Correct ?    11 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

4. main() { int c=- -2; printf("c=%d",c); }

1364


What is volatile variable how do you declare it?

562


List a few unconditional control statement in c.

555


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

831


Can you please explain the difference between syntax vs logical error?

689






What is the difference between #include and #include 'file' ?

602


how is the examination pattern?

1595


Can we increase size of array in c?

534


How can I delete a file?

626


What is the difference between array and pointer in c?

575


`write a program to display the recomended action depends on a color of trafic light using nested if statments

1629


Explain what are the advantages and disadvantages of a heap?

595


Explain 'bus error'?

555


What is stack in c?

608


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

1307