What is the exact difference between '\0' and ""

Answers were Sorted based on User's Feedback



What is the exact difference between '\0' and ""..

Answer / hemas

'\0' is NULL character
"" is null string.

Is This Answer Correct ?    15 Yes 0 No

What is the exact difference between '\0' and ""..

Answer / guest

\0 is end of the string.
"" is empty charater, each space is also refered as
character

Is This Answer Correct ?    4 Yes 1 No

What is the exact difference between '\0' and ""..

Answer / naresh lingampally

`\0' (ascii NUL, which has value zero)
"" no spaces nothing implemented
.

I am confused can any one explain !!

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

How to reverse alternate words in a given line of string For Eg: my name is narasimha output : my eman is ahmisaran

0 Answers  


What does 4d mean in c?

0 Answers  


how can i print "hello".please consider inverted commas as well.i want to print on console: "hello"

4 Answers   Wipro,


what do u mean by Direct access files? then can u explain about Direct Access Files?

0 Answers   LG Soft,


How can I do serial ("comm") port I/O?

0 Answers   Celstream,






What is the heap in c?

0 Answers  


What are # preprocessor operator in c?

0 Answers  


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

0 Answers   Huawei,


Which of the following data structures is on average the fastest for retrieving data: 1) Binary Tree 2) Hash Table 3) Stack

3 Answers  


Is there any restriction in how many arguments printf or scanf function can take? in which file in my c++ compiler i can see the code for implementation of these two functions??

4 Answers  


how c source file in converted to exe file

5 Answers   KPIT,


If an old women's age is the same as her three grand daughters i,mean the number of days old child=the no of weeks old child=no of months old child .The total yrs of all these ppl is 114 yrs...then how old is the old woman? the yr has 365 days..and 30 days each month.

1 Answers   TCS,


Categories