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

What is the mean of this statement:: if(int i=0 * i=9)

2 Answers   HCL,


here is a link to download Let_Us_C_-_Yashwant_Kanetkar

3 Answers   Microsoft,


What are types of functions?

0 Answers  


main is a predefined or user define function if user defined why? if predefined whay?

12 Answers   TCS,


What is Dynamic Initialization.

3 Answers  






what is the purpose of the code, and is there any problem with the code? int f( int n, int l, int r ) { return (n << l) >> r; }

2 Answers   Google,


What is a keyword?

0 Answers  


What is the relation between # and include<stdio.h>

5 Answers   HCL,


Write program to remove duplicate in an array?

0 Answers  


Write a C function to search a number in the given list of numbers. donot use printf and scanf

6 Answers   Honeywell, TCS,


write a program in c to print **** * * * * ****

1 Answers   TCS,


code for concatination of 2 strings with out using library functions?

3 Answers  


Categories