Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Predict the output or error(s) for the following: 25. main() { printf("%p",main); }

3 Answers   Google, ME,


There are 8 billiard balls, and one of them is slightly heavier, but the only way to tell was by putting it on a weighing scale against another. What's the fewest number of times you'd have to use the scale to find the heavier ball?

5 Answers   Microsoft, TCS,


why r u join this company? give solid resons.

16 Answers   IBM, Infosys, TCS,


Find if a number is power of two or not?

1 Answers  


Why pointers are used in c?

0 Answers  


write a function which accept two numbers from main() and interchange them using pointers?

3 Answers  


Write a main() program that calls this function at least 10 times. Try implementing this function in two different ways. First, use an external variable to store the count. Second, use a local variable. Which is more appropriate?

2 Answers  


Why array starts with index 0

2 Answers  


What is a program flowchart?

0 Answers  


What is structure and union in c?

0 Answers  


How is a macro different from a function?

0 Answers   Tech Mahindra,


Write a program to find factorial of a number using recursive function.

0 Answers   Global Logic, TCS,


Categories