₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,112 members, 8,420,415 topics. Date: Thursday, 04 June 2026 at 07:00 PM

Toggle theme

A Question About String In C++ - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingA Question About String In C++ (1299 Views)

1 Reply (Go Down)

A Question About String In C++ by TheCongo2(op):
Hello,

My question is as follow:

When writing s[8] in c++, does this represent a string or array of size 8 or does it represent the 8th character on the string or array called s?
Re: A Question About String In C++ by pointblank247(m): 6:09pm On Mar 17, 2019
Why should this man be speaking Greek language to English readers ?
Re: A Question About String In C++ by ogunjobiolaide: 7:31pm On Mar 17, 2019
Array with 8 items starting from 0 to 7, but the declaration is incomplete.
Re: A Question About String In C++ by asalimpo(m): 2:54am On Mar 18, 2019
What book r u using to learn? A good book would make this thread u created unnecessary?
Re: A Question About String In C++ by TheCongo2(op): 5:31am On Mar 18, 2019
asalimpo:
What book r u using to learn? A good book would make this thread u created unnecessary?
And what is your answer given that you have read a good book?
Re: A Question About String In C++ by asalimpo(m): 11:18am On Mar 18, 2019
TheCongo2:
And what is your answer given that you have read a good book?
keep it up. Cheekiness will get u far in ur programming endeavour.
Re: A Question About String In C++ by stanliwise(m): 11:44am On Mar 18, 2019
TheCongo2:
Hello,

My question is as follow:

When writing s[8] in c++, does this represent a string or array of size 8 or does it represent the 8th character on the string or array called s?
The above mean the 9th character in a string e.g

if s = "Nairaland";
then s[8] will be "d"
Re: A Question About String In C++ by Speak2klein: 2:09pm On Mar 18, 2019
Hey guys! I have an exciting project for an Embedded controller running VxWorks OS. If you're familiar with this kind of work and you're interested, just call me or send a text to 09091772274
1 Reply

Please Help Me Solve This Problem In C++Dynamic Routing: Params & Query String In Node/expressHow To Encrypt In Javascript And Decrypt String In PHP Using AES And Cryptojs234

Guess The Number - Java CodesTutorials On Vb6Info On Bar Code Scanners And Printers