What does the above line means?Code:char *str="SONIA";
}
char *str--I guess by using * we can store more than one character in str.
I am right or wrong??
Please help me!!!!
Printable View
What does the above line means?Code:char *str="SONIA";
}
char *str--I guess by using * we can store more than one character in str.
I am right or wrong??
Please help me!!!!
I believe it means Pointer
In this context, char * str means a variable called str which is of type pointer to memory containing char. When used with initialization as in post #1, the chars S O N I A and the NULL char are placed in memory and str is allocated a value that is the memory address of the character S.
Pointer * means ...