edited by
579 views
0 votes
0 votes
#include <stdio.h>
int main(void) {
    int i = 0;
    char ch;
    while(1) {
        ch= *("hello world" + i);
        if(ch == '\0')
            break;
        putchar(ch);
        i++;
    }
    return 0;
}



What does  ch= *("hello world" + i); do?

edited by

Please log in or register to answer this question.

Related questions

2 votes
2 votes
2 answers
3
atulcse asked Jan 15, 2022
703 views
Consider the following programint find (int n) { int a = 1; for (i = 1; i < = n; i ++) for (j = 1; j < = i; j++) for (k = 1; k <= j, k++) a = a + 1; ...
0 votes
0 votes
3 answers
4
ramakrushna asked Dec 23, 2021
764 views
What should be the ans. Isn’t the Function initialization should be outside main function? They are given inside main. If declaration would be outside main then ans sho...