New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How many times would the following loop execute? Char a = 'a' While (a>'a' && a<='z') a++;
10 Answers
0
Subhasmita Dash Yes It is, the above of the following loop is not true.. to make execution the loop it's needed to be true both sides of statement.. regarding this part of AND statement.. thanks..
+ 4
No output
Your condition
a> 'a' never gonna true
+ 4
Subhasmita Dash ,
i can not see that you have started with any sololearn tutorial to learn. (you have registerd for sololearn just 1 day ago)
> select a programming language you wanted to learn.
> start with the basic tutorial by reading and learning the lessons. all of the things you have asked are explained in the tutorials.
> also practice as much as you can afford
> if you get stuck somewhere you can post a question here.
+ 2
Because you have defined char data type which have value 'a'
And a == 'a' // true but a>'a' false value of a is 'a'
It's not greater nor smaller and && will be true if your both case satisfy first and second condition
+ 1
Explain it .
0
Why ?
0
Explain why it is false here
0
Ya
0
hy
0
how 2 file join