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 |
what is the other ways to find a logic to print whether a number is an even or odd wit out using % symbol??????? i know three different ways to print it. so i need any other different logic>>>>>
can we define a function in structure?
How can I change the size of the dynamically allocated array?
What is the code for 3 questions and answer check in VisualBasic.Net?
With the help of using classes, write a program to add two numbers.
What is boolean in c?
program to find which character is occured more times in a string and how many times it has occured? for example in the sentence "i love india" the output should be i & 3.
Write a program on swapping (100, 50)
What are the c keywords?
Write a code to reverse string seperated by spaces i/p str=India is my country o/p str=aidnI si ym yrtnuoc After writing code, optimize the code
What are examples of structures?
what is the output of the code and how? main() { int *ptr,x; x=sizeof(ptr); printf("%d",x); }