Question: What type of initialization is needed for the segment “ptr[3] = ‘3’;” to work?
Options
A : char *ptr = “Hello!”;
B : char ptr[] = “Hello!”;
C : both char *ptr = “Hello!”; and char ptr[] = “Hello!”;
D : none of the mentioned
C Interview Questions Character Pointers Functions more questions
The decision problem is the function from string to ______________
Select the odd one out with respect to type?
Which of the following data-types are promoted when used as....
What type of value does sizeof return?
Which of the following return-type cannot be used for a....
The C library function _________ breaks string s1 into a....
Which is correct with respect to the size of the....
Which of the following is not a pointer declaration?
In a 32-bit compiler, which 2 types have the same....
In which way can SAM be stored in an array?
Chemical Engineering Basics - Part 1 more Online Exam Quiz
C Interview Freshers Random Number Generation
C Interview Freshers Variable Length Argument
C Interview Questions Basics Functions
C Interview Questions Character Class Testing Conversions
C Interview Questions Command Line Arguments
C Interview Questions Conditional Inclusion
C Interview Questions Experienced Break Continue
C Interview Questions Experienced Precedence Order Evaluation