what is the difference between NULL('\0') and 0?

Answer Posted / siddhant

Null is used to terminate strings. It is a character constant..
0 is an integer constant. Its ASCII code is 48.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does s c mean in text?

616


Explain that why C is procedural?

661


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

714


How can you tell whether two strings are the same?

835


What is the use of getchar() function?

631






How can I discover how many arguments a function was actually called with?

636


What are control structures? What are the different types?

599


Why is python slower than c?

608


What is the purpose of realloc()?

673


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1860


What is structure of c program?

608


What is fflush() function?

645


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2456


Explain what is the difference between a string and an array?

640


What is malloc return c?

601