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

Answer Posted / karen

If the question is asking what is the difference between
char x = '\0' and char x = 0, the answer is there is no
difference. This is why you can use memset or zeromemory to
flush out an empty character array.

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

1709


What are the advantages of using linked list for tree construction?

646


Write a program to print fibonacci series using recursion?

588


What is the condition that is applied with ?: Operator?

666


How can you increase the size of a dynamically allocated array?

644






What is #line used for?

583


What are the applications of c language?

627


What is your stream meaning?

608


Tell me what is null pointer in c?

616


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

767


Explain Basic concepts of C language?

647


Explain what is a static function?

633


Explain the Difference between the New and Malloc keyword.

689


How was c created?

590


Are global variables static in c?

677