what is diference between return 0 and return NULL??

Answers were Sorted based on User's Feedback



what is diference between return 0 and return NULL??..

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

what is diference between return 0 and return NULL??..

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

what is diference between return 0 and return NULL??..

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

Post New Answer

More C Interview Questions

write a c program to find the probability of random numbers between 1-1000

0 Answers   ADS,


Differentiate between new and malloc(), delete and free() ?

0 Answers   iNautix,


What is omp_num_threads?

0 Answers  


What is dangling pointer in c?

0 Answers  


Is c dynamically typed?

0 Answers  






What does 3 mean in texting?

0 Answers  


Why string is used in c?

0 Answers  


What tq means in chat?

0 Answers  


While compiling a c program,graphics header files are not including in my program..eg: <graphics.h>,what may be the problem...is there any environment settings exists.

2 Answers  


What is gets() function?

0 Answers  


What is the -> in c?

0 Answers  


write a 'c' program to sum the number of integer values

8 Answers  


Categories