what is diffrence between string and character array?
Answer / vadivelt
By default String always ends with NULL character ie., '\0'.
But in character array manually it is needed to terminate
with NULL(You can do this, only when you wanted to use
character array as string)
Eg;
char *p = "Vadivel"; /*By default string is terminated
with '\0'*/
char array[8] = {'V','a','d','i','v','e','l','\0'};
/*Here terminated manually*/
Is This Answer Correct ? | 9 Yes | 1 No |
x=y=z=1 z=++x||++y&&++z Printf("%%%d";xyz) what is the values of x,y and z?????
How do we declare variables in c?
int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
Is it better to use a macro or a function?
who is the father of c
why effort estimation is important?
Which node is more powerful and can handle local information processing or graphics processing?
Combinations of fibanocci prime series
What is the best way to store flag values in a program?
What is the advantage of c?
How can you call a function, given its name as a string?