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

Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

0 Answers   Wipro,


explain how do you use macro?

0 Answers  


What is the -> in c?

0 Answers  


write a program to produce the following output; ABCDEFGFEDCBA ABCDEF FEDCBA ABCDE EDCBA ABCD DCBA ABC CBA AB BA A A

17 Answers   ABC, College School Exams Tests,


how to implement stack operation using singly linked list

2 Answers  


what is difference between ++(*p) and (*p)++

17 Answers   Accenture, HCL, IBM,


progrem to generate the following series 1 12 123 1234 12345

6 Answers   HCL, Wipro,


Write code for finding depth of tree

2 Answers   Adobe,


Write a program to reverse a string.

0 Answers   Global Logic, iNautix, TCS, Wipro,


what is the difference between const volatile int i & volatile const int j;

2 Answers   HCL,


What is the difference between ‘g’ and “g” in C?

1 Answers  


proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?

7 Answers   Hughes,


Categories