what is the difference b/w NULL and null?
Answers were Sorted based on User's Feedback
Answer / evalin jose
"null" means empty.And "NULL" means ,it values zero.
Is This Answer Correct ? | 14 Yes | 4 No |
Answer / guest
In c language there is difference small alphabets that is
null and NULL capital alphabets ,it store nothing in a field
Is This Answer Correct ? | 3 Yes | 3 No |
Answer / deepika
NULL------ It is a macro defined null pointer.
size(NULL)--->4 bytes
null------It is the name of the first character in ASCII character set. size(null)----->1 byte
Is This Answer Correct ? | 1 Yes | 2 No |
What is the use of static variable in c?
string reverse using recursion
struct abc { unsigned int a; char b; float r; }; struct xyz { int u; struct abc tt; }ww; ww = (struct xyz*)malloc(sizeof(struct xyz)); will the memory be allocated for the inner structure also?
What is #include in c?
What does %d do?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What is difference between main and void main?
write a program whose output will be- 1 12 123 1234
Write an interactive c program that will encode or decode a line of text. To encode a line of text, proceed as follows: Convert each character, including blank spaces, to its ASCII equivalent. Generate a positive random integer. Add this integer to the ASCII equivalent of each character. The same random integer will be used for the entire line of text. Suppose that N1 represents the lowest permissible value in the ASCII code, and N2 represents the highest permissible value. If the number obtained in step 2 above exceeds N2, then subtract the largest possible multiple of N2 from this number, and add the remainder to N1. Hence the encoded number will always fall between N1 and N2, and will therefore always represent some ASCII character. Display the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text. Be certain, however, that the same random number is used in decoding as was used in encoding.
1 Answers Amazon, CSJM, HCL, Microsoft, TCS, Wipro,
What is a C array and illustrate the how is it different from a list.
What is the use of printf() and scanf() functions?
what is d pitfalls of registers variables