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

Answers were Sorted based on User's Feedback



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

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

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

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

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

Answer / prasad

null set always knwn as zero

Is This Answer Correct ?    3 Yes 10 No

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

Answer / dushyant

null means nill nothing is there. zero means something is there but we dont know....

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More C Interview Questions

What are the disadvantages of c language?

0 Answers  


How is pointer initialized in c?

0 Answers  


program for validity of triangle from 3 side

7 Answers  


Write a c code segment using a for loop that calculates and prints the sum of the even integers from 2 to 30, inclusive?

4 Answers  


What does main () mean in c?

0 Answers  






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

0 Answers  


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

0 Answers  


Code for calculating square root without using library function, of math.h

4 Answers   IBM,


1. Write a program to reverse every second word in a given sentence.

1 Answers  


please help me.. how to write a code of this output?? "Enter range number:"10 1 is an odd number 2 is an even numbers 3 in an odd numbers 4 " to 10" "printing all odd numbers:" 1,3,5,7,9 "printing all even numbers:" 2,4,6,8,10 "sum of all odd numbers:25 "sum of all even numbers:30 using a C Programming ARRAY pleas pleas help.. its my project ..please :(

1 Answers  


Why is struct padding needed?

0 Answers  


wat are the two methods for swapping two numbers without using temp variable??

2 Answers  


Categories