In C program, at end of the program we will give as "return 0"
and "return 1", what they indicate? Is it mandatory to specify
them?
Answer Posted / hari
yeah....... its necessary to return some value if the return type of main() is 'int'.
in fact we can return any valid integer.
here are few examples... all are correct;;;;;;>
return 0;
return 1;
return 100;
return -3;
return 'c';
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are keywords in c with examples?
What are the features of c language?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
What is console in c language?
What is the process of writing the null pointer?
What do you mean by scope of a variable in c?
Write a program to maintain student’s record. Record should
not be available to any unauthorized user. There are three
(3) categories of users. Each user has its own type. It
depends upon user’s type that which kind of operations user
can perform. Their types and options are mentioned below:
1. Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record)
2. Super Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record, Delete Single Record)
3. Guest
(Search Record [by Reg. No or Name], View All Records)
When first time program runs, it asks to create accounts.
Each user type has only 1 account (which means that there
can be maximum 3 accounts). In account creation, following
options are required:
Login Name: <6-10 alphabets long, should be unique>
Password: <6-10 alphabets long, should not display
characters when user type>
Confirm Password:
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
string reverse using recursion
What are structural members?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
What is pointer to pointer in c with example?
What is typedef example?
What is pragma c?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?