-1

For example

#include<stdio.h>
int main()
{
    for(int i=1; i<=10; ++i)
    {
        printf("%d \n", i);
    }
    return 0;
}

Can the ++i in the for loop updation be i++?

Ôrel
  • 7,044
  • 3
  • 27
  • 46
LordRishav
  • 33
  • 6

1 Answers1

0

Can the ++i in the for loop updation can be i++?

Answer is Yes

You can check the o/p in both the case. It print the same value.

Jeegar Patel
  • 26,264
  • 51
  • 149
  • 222