C Programming Code Examples C > For Loops and While Loops Code Examples Multiple initialization inside for Loop in C Multiple initialization inside for Loop in C 1. It is initializing two variables. Note: both are separated by comma (,). 2. It has two test conditions joined together using AND (&&) logical operator. Note: You cannot use multiple test conditions separated by comma, you must use logical operator such as && or || to join conditions. 3. It has two variables in increment part. Note: Should be separated by comma. #include <stdio.h> int main() { int x,j; for (x=1,j=1 ; x<3 || j<5; x++,j++) { printf("%d, %d\n",x ,j); } return 0; }