C Programming Tutorial - 37: For Loop

preview_player
Показать описание
In this tutorial we'll learn to use the for loop. For is an amazing looping construct and we would be experimenting with it a lot in this course.

Thanks for watching!
Рекомендации по теме
Комментарии
Автор

i am getting incorrect results while using this as on the code:

{
    int a;
    for(a=0;a<10;a+1)
    {
        printf("a is :%d\n", a);
    }
}

instead on a++ for the for loop incremental part, i used a+1, the results on the  command line is something a is : 0?

what i did wrong here! please help.

diwaker