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?
Answers were Sorted based on User's Feedback
Answer / ranjeet roy
if the return type of our function is int ..
thn it is maindetory to return something like 0 nd 1..
but if we declare the return type void
then doesnt require
| Is This Answer Correct ? | 21 Yes | 1 No |
Answer / sivavendra
Yes, it is mandatory to return some value if return type of main() is specified as "int"
| Is This Answer Correct ? | 0 Yes | 0 No |
write a program to gat the digt sum of a number (et. 15= >1+5=6)
what is difference between ANSI structure and C99 Structure?
How do I round numbers?
Why should I use standard library functions instead of writing my own?
What are the primitive data types in c?
What are logical errors and how does it differ from syntax errors?
Program to find the sum of digits of a given number until the sum becomes a single digit
Where is c used?
Write a program or provide a pseudo code to flip the 2nd bit of the 32 bit number ! (Phone Screen)
What should malloc(0) do?
Where are local variables stored in c?
5. What kind of sorting is this: SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,........n-1 2.[For each pass,get small value] min=i; repeat for j=i+1 to N do { if K[j]<k[min] min=j; } temp=K[i];K[i]=K[min];K[min]=temp; 3.[Sorted Values will be returned] A)Bubble Sort B)Quick Sort C)Selection Sort D)Merge Sort