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 |
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
1.what are local and global variables? 2.what is the scope of static variables? 3.what is the difference between static and global variables? 4.what are volatile variables? 5.what is the use of 'auto' keyword? 6.how do we make a global variable accessible across files? Explain the extern keyword? 7.what is a function prototype? 8.what does keyword 'extern' mean in a function declaration?
What does %c mean in c?
What will be the result of the following program? char*g() { static char x[1024]; return x; } main() { char*g1="First String"; strcpy(g(),g1); g1=g(); strcpy(g1,"Second String"); printf("Answer is:%s", g()); } (A) Answer is: First String (B) Answer is: Second String (C) Run time Error/Core Dump (D) None of these
Can a variable be both constant and volatile?
write a c program to print "Welcome" without using semicolon in the whole program ??
Explain function pointer with exapmles.
void main() { int a=1; while(a++<=1) while(a++<=2); }
What is pointer and structure in c?
how do you programme Carrier Sense Multiple Access
What is bubble sort in c?
write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145]