what is diference between return 0 and return NULL??
Answers were Sorted based on User's Feedback
Answer / sourabh
return 0 means the function returns the particular value 0
returnn null means the function does not return any value'
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / dips
return 0 is indicatiion of successsfull completetion of
programme generally we write return 0 for that purpose
return null its returnig nothing in some condition we may
dont require to return any value
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / bajishareef
o is the value oriented decimal constant which is of integer type.
Where as NULL is the address oriented empty value.
Both are not equal
| Is This Answer Correct ? | 1 Yes | 2 No |
What is difference between array and pointer in c?
What is the deal on sprintf_s return value?
How do you write a program which produces its own source code as its output?
What is meant by type specifiers?
12. Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV
Explain what is the difference between declaring a variable and defining a variable?
What are the difference between a free-standing and a hosted environment?
What are the parts of c program?
How many levels of pointers have?
What is the difference between Printf(..) and sprint(...) ?
how can i include my own .h file EX:- alex.h like #include<alex.h>, rather than #include"alex.h"
What is c method?