what is the difference between NULL('\0') and 0?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What are the disadvantages of c language?
How is pointer initialized in c?
program for validity of triangle from 3 side
Write a c code segment using a for loop that calculates and prints the sum of the even integers from 2 to 30, inclusive?
What does main () mean in c?
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
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Code for calculating square root without using library function, of math.h
1. Write a program to reverse every second word in a given sentence.
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 :(
Why is struct padding needed?
wat are the two methods for swapping two numbers without using temp variable??