Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ array access operator

// CPP program to demonstrate []
// operator
#include <iostream>
using namespace std;
int main()
{
    char name[] = "Ramswarup Tushar Nilesh Subhash";
  
    // Both of the statement prints same thing
    cout << name[5] << endl;
    cout << 5 [name] << endl;
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: char to binary 
Cpp :: initialize many variablles c++ 
Cpp :: c++ map access 
Cpp :: ranged based for loop c++ 
Cpp :: operazioni aritmetiche c++ 
Cpp :: break input stream into words 
Cpp :: fabs in c++ example 
Cpp :: c+ - Dormir en millisecondes 
Cpp :: C++ with SVD 
Cpp :: ex: java script 
Cpp :: convert preorder to postorder calculator 
Cpp :: c++ void to avoid functions 
Cpp :: beecrowd problem 1004 solution 
Cpp :: c++ fps sleep while loop 
Cpp :: left recursion program in c++ 
Cpp :: sprintf add two xeroes for a float number 
Cpp :: sin trigonometric function 
Cpp :: codeforces Pangram in c++ 
Cpp :: Structure of s void function 
Cpp :: 2dvector c++ 
Cpp :: c++ sort a 2d vector by column 
Cpp :: int a=0; int b=30; 
Cpp :: c++ convert const char* to LPCWSTR 
Cpp :: vector remove class 
Cpp :: add for input output file in c/c++ 
Cpp :: bus ticket booking online pakistan 
Cpp :: dream speedrun music free download mp3 
C :: docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. 
C :: check dns server in linux 
C :: print boolean value in c 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =