Pages

Sunday, April 20, 2025

Character Arrays in C++

#include <iostream>

#include <cstring>

using namespace std;



int main() {

    char work[50] = {

        'h', 'e', 'l', 'l', 'o', '\0'

    };

    

    cout << strlen(work) << endl;


    return 0;

}

No comments:

Post a Comment

how to become red on codeforces by Errichto Algorithms | explained simply in a blog

 Yes. I found an available transcript of the video and summarized it simply. The video is “How To Become Red Coder? (codeforces.com)” by Err...