whitch value return void main?
Answers were Sorted based on User's Feedback
Answer / kalyan
Void Doesn't Return any value instead u using int u need to
written any valu but void does n't return any value
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / aruna.r
void main() doesn't return any value.but we have to use
return type int means return any value
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / pradeep
void main might return a value.
you should not assign to other variable.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / trushali
when we write void main it means its not returning any value
to main function,so we do not need write return 0 at the end
of program.
but when we write main only then by default compiler
consider it as int main,and at the end we need to write
return 0(means successful completion of the program without
any problem).
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / prabu
yes there is no return a value for void main function
| Is This Answer Correct ? | 0 Yes | 0 No |
What is structure data type in c?
What is a nested loop?
what will be the output of this program main() { int i=1; while (i<=10); { i++; } }
What is the Difference between Macro and ordinary definition?
3 Answers Bosch, Cognizant, College School Exams Tests, Motorola,
How to access or modify the const variable in c ?
16 Answers HCL, HP,
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
#include<stdio.h> main() { int a=1; int b=0; b=++a + ++a; printf("%d %d",a,b); }
main() { int i; for(i=0;i<5;i++) printf("%d",1l<<i); } why doesn't 'l' affect the code??????
2.Given the short c program that follows a. make a list of the memory variables in this program b.which lines of code contain operations that change the contents of memory? what are those operations? Void main( void) { Double base; Double height; Double area; Printf(“enter base and height of triangle :”); Scanf(“%lg”, &base); Scanf(“%lg”, &height); Area=base*height/2.0; Printf(“the area of the triangle is %g \n”,area); }
Add 2 64 bit numbers on a 32 bit machine
3 Answers EMC, Hyderabad Central University, NetApp,
difference between loading and linking
What is the difference between far and near ?