What will be the correct syntax for initialization of pointer-03126
What will be the correct syntax for initialization of pointer ptr with string "programming"?
This multiple choice question (MCQ) is related to the book/course
vu cs201 Introduction to Programming.
It can also be found in
vu cs201 Mid Term - Quiz No.3.
What will be the correct syntax for initialization of pointer ptr with string "programming"?
char ptr = 'programming' ;
char *ptr = "programming" ;
char *ptr = ‘programming' ;
*ptr = "programming" ;