What will the following programs print in the for loop? - C Statement

C examples for Statement:for

Description

What will the following programs print in the for loop?

Demo Code

#include <stdio.h> 

int main(void) 
{ 
     int i; //from  www .  j  av a 2  s.co  m
     char ch; 
 
     for (i = 0, ch = 'A'; i < 4; i++, ch += 2 * i) 
         printf("%c", ch); 
     return 0; 
}

Result


Related Tutorials