what is diference between return 0 and return NULL??

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is the “void” keyword used in a function?

838


Describe static function with its usage?

612


Which one would you prefer - a macro or a function?

604


Why is structure padding done in c?

648


What is the use of #define preprocessor in c?

618






Differentiate between ordinary variable and pointer in c.

618


What is return in c programming?

516


Tell me what is null pointer in c?

615


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

920


Explain what is wrong with this program statement? Void = 10;

765


Explain that why C is procedural?

660


general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

588


What is the sizeof () operator?

624


How can you check to see whether a symbol is defined?

592


What is use of #include in c?

600