C_44 Nested while loop in C | C Programming Tutorials

preview_player
Показать описание
In this lecture we will learn:
- What is Nested while loop in C?
- working and syntax of nested while loop
- C program using nested while loop

*********************************************

Connect & Contact Me:

*******************************************

More Playlists:

#cprogramming #coding #codingexercises #program #clanguage #jennyslectures
Рекомендации по теме
Комментарии
Автор

before you learn any programming language you need to watch all these videos to learn what is going on :), ,, excellent work

ahmadalkordee
Автор

This is incredibly helpful. Most YT teachers explain how each part of the loop functions, but never go into their relation and how control moves through each loop. SO SO helpful, thank you!

chezchundy
Автор

Superb vdo❤️. never ever seen in my lyf.
Those who are great fan of mam please like for her.
👍

priyanshupradhan
Автор

It was really difficult for me to understand nested while loop, your lectures really helped me a lot... Thank you so much

taebear
Автор

int i=0, j=1;
while(i<3)
{
while(j<=3)
{
}
}
printf ("%d %d ", ++i, ++j) ;

First while loop condition is true, so it will enter in second while loop.
Second while loop condition is also true, but both while loop doesn't have any statements or update/modify expression,
So it will an infinite loop and program will not get out of loop & will not execute printf statement.
Output will be blank screen or No output.

sankalpphadke
Автор

#include<stdio.h>
void main()
{
int i=0, j=1;
while (i<3)
{
while(j<=3)
{
printf("%d", j++);
}
printf("%d", i++);
}
}
This is the code for the video
Output:123012

durgasai
Автор

For the assignment it will be an infinite loop since j is 1 hence 1<=3 and there is no increment or decrement within the inner loop. When i tried on IDE i did not get any output but it kept running until i stopped it.

maryannemuthoni
Автор

i like your style
So understand easyly
I am from sri lanka 🇱🇰

Cassidy_luv
Автор

in the second question, the inner loop will be an infinite one as the value of j doesn't get updated and as a result the printf statement is never executed.

trapking
Автор

My college professor are not like you as you teaching clearly thanks mam 🙏👍

vishal-nxvh
Автор

yha sabse bada maam ka fan mai dhakka-mukki nahi kraga....

DeepakKumar-lbku
Автор

#include <stdio.h>
void main() {
int i=0, j=1;
while(i<3)
{
while(j<=3)
{
}
}
printf("%d%d", ++i, ++j);
}
for this program no out put will be displayed due to no updation in inner while loop

naveensubbireddy
Автор

Loops will empy because there is no any value entered into inner loop(if we entered printf then it will infinite Loop

ruthrakaran
Автор

9:29 it runs like ♾️ loop and won't print any. Is it right 🤔🤔

marimuthu_a
Автор

Thank you very much for your lessons. They are really helping me to understand C programming much better

nickbillions
Автор

awesome lecture, I like how you lecture, good coaching keep it up .

awopetuolamilekan
Автор

int i=0, j=1;
while(i<3)
{
while(j<=3)
{

}

}
printf ("%d %d ", ++i, ++j) ;

The above code will get into an infinite loop, since the inner while will keep checking the condition (j<=3), and it'll be true bcz there is no loop updation statmnt given. So it'll never come out of inner loop and will never printf 'i' or 'j'.

I also tried adding (j++) in the inner loop and (i++) in the outer loop and the output here is i=4, j=5.

thankyou so much for excellent explanation Jenny ji ❤❤😊

saishrutik
Автор

My 🧠: I think i am late to learn C 😒😏
My 🫀: No problem Jenny Mam is there....🤞✌😎

MAHESH-rfuy
Автор

I really like your videos there're clear, informative and I really like your way of teaching, big respect and salute queen of C .

emiliarose
Автор

Thank you so much for this wonderful explanation. Now, it makes sense for me!

superhamid