In a C language ‘3’ represents | CPP MCQs

a.    A digit
b.    An integer
c.    A character
d.    A word

Ans: c

1 comments:

Unknown said...

"Hello There,

I genuinely do look forward for the time where you post some new write ups. Your blog make me feel so educated! Continue soaring and writing please.


Why the below code does not throw any error ?, as the 2nd argument of the for loop takes boolean type whereas it's getting data of int type .

The code runs with any error and gives output as 5 2
I don't know understand how it gives 5 2 ?

Here is my understanding ----->

In the 1st iteration
for(7; 6; 4) {
print 5
}
- -- - - - - - - - - - - - - - - -- - - -
In the 2nd iteration
for(3; 2; 0) {
print 1
}

- -- - - - - - - - - - - - - - - -- - - -
In the 3rd iteration
Now what ? When does the for loop stop?

Thanks a lot. This was a perfect step-by-step guide. Don’t think it could have been done better.

Many Thanks,
Preethi
"

Post a Comment

Blogger news