What is a string example?



What is a string example?..

Answer / Bhuvnesh Kumar Singh

A string in C++ can be defined as an array of characters. For example: `char str[] = "Hello, World!";`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Define basic type of variable used for a different condition in C++?

1 Answers  


Can turbo c++ run c program?

1 Answers  


write a program in c++ to implement stack using functions in header file stack.h

3 Answers   Google, Subex,


What is c++ library?

1 Answers  


What is the difference between strcpy() and strncpy()?

1 Answers  


How to create a reference variable in C++

1 Answers  


class professor {}; class teacher : public virtual professor {}; class researcher : public virtual professor {}; class myprofessor : public teacher, public researcher {}; Referring to the sample code above, if an object of class "myprofessor" were created, how many instances of professor will it contain? a) 0 b) 1 c) 2 d) 3 e) 4

4 Answers   Quark,


To which numbering system can the binary number 1101100100111100 be easily converted to?

1 Answers  


Can we change the basic meaning of an operator in c++?

1 Answers  


How do I use turbo c++?

1 Answers  


Explain what data encapsulation is in c++?

1 Answers  


What is c++ map?

1 Answers  


Categories