What is the difference between char str, char *str and char* str ?Explain the meaning of char* or int* ?

What is the difference between char str, char *str and char* str ?Explain the meaning of char* or int* ?

Char *str is just a pointer its can't store anything, If we cout or printf() char *str it prints till it finds termination char '';
char str is a char variable which is capable to store one character and store a string also. Its length can be fixed only at run time.Char* is pointer which store address of char variable .

By:UMANG
Date:2001-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher