what is diference between return 0 and return NULL??

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to reverse a given number in c language?

620


Differentiate fundamental data types and derived data types in C.

618


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2334


Is c easy to learn?

560


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

1768






What is multidimensional arrays

632


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

636


What is #include stdio h?

687


What is double pointer?

560


What is #define?

576


Is main an identifier in c?

603


What is putchar() function?

637


What is && in c programming?

683


You have given 2 array. You need to find whether they will create the same BST or not. For example: Array1:10 5 20 15 30 Array2:10 20 15 30 5 Result: True Array1:10 5 20 15 30 Array2:10 15 20 30 5 Result: False One Approach is Pretty Clear by creating BST O(nlogn) then checking two tree for identical O(N) overall O(nlogn) ..we need there exist O(N) Time & O(1) Space also without extra space .Algorithm ?? DevoCoder guest Posted 3 months ago # #define true 1 #define false 0 int check(int a1[],int a2[],int n1,int n2) { int i; //n1 size of array a1[] and n2 size of a2[] if(n1!=n2) return false; //n1 and n2 must be same for(i=0;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

2712


In which header file is the null macro defined?

857