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 the difference between NULL('\0') and 0?

Answer Posted / shashwat

Actually binary code of both are same.
0 -> 00000000 NULL
But when this 0 is included in a string or char as

char x = '0';
or char x[20] = "1230";

It is the character zero (not NULL). It has an ASCII of 48
and will be stored as
00110000.

That is why, they have created different zeroes to
represent either the character zero or ASCII value zero.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we not create function inside function.

2175


Is anything faster than c?

998


Is c procedural or functional?

1005


write a program to find out prime number using sieve case?

2076


What does the format %10.2 mean when included in a printf statement?

1638


What is echo in c programming?

1006


What is structure in c definition?

1035


What is a shell structure examples?

1076


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

1116


How can you determine the size of an allocated portion of memory?

1287


Describe the modifier in c?

1088


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2794


Why is struct padding needed?

1075


What does p mean in physics?

1025


What are lookup tables in c?

986