LogiQuest
Back to Strings
12

What will be the output of the program?

#include <stdio.h>

int main(void) {
    char s[] = "Hello";
    int i;
    for (i = 0; s[i]; i++) s[i] = s[i] + 1;
    printf("%s\n", s);
    return 0;
}
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.