what is the difference b/w NULL and null?

Answer Posted / deepika

NULL------ It is a macro defined null pointer.
size(NULL)--->4 bytes

null------It is the name of the first character in ASCII character set. size(null)----->1 byte

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

3651


What are global variables?

642


What is this pointer in c plus plus?

590


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

643


How do you list files in a directory?

559






What is scanf () in c?

658


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

647


What is the difference between strcpy() and memcpy() function in c programming?

626


What are operators in c?

579


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

717


What is difference between structure and union in c programming?

565


Why we use void main in c?

590


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

1697


How many types of operator or there in c?

599


What does 1f stand for?

606