C++ Syntax Question:
Download Job Interview Questions and Answers PDF
What is C strings syntax?
Answer:
Strings are arrays of chars. String literals are words surrounded by double quotation marks.
"This is a static string"
To declare a string of 49 letters, you would want to say:
char string[50];
"This is a static string"
To declare a string of 49 letters, you would want to say:
char string[50];
Download Basic C++ Syntax Interview Questions And Answers
PDF
Previous Question | Next Question |
Do you know what are the new features that ISO/ANSI C++ has added to original C++ specifications? | How to access a variable of the structure? |