how does the for loop work actually..suppose for the
following program how it ll work plz explain to me
for(i=5;i>=0;i--)
prinf(i--);
Answer Posted / preshit
o/p will b
4 2 0
bcoz first i=5 ok then condition after taht ok so printf
will decrement i, so o/p 4
then it decrement it twice for 2 times
OR
it will give syntax error if printf(i--)is wrong
| Is This Answer Correct ? | 0 Yes | 7 No |
Post New Answer View All Answers
How to delete a node from linked list w/o using collectons?
Why n++ execute faster than n+1 ?
Why shouldn’t I start variable names with underscores?
What is union and structure in c?
What does it mean when a pointer is used in an if statement?
what is a function method?give example?
List some basic data types in c?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
What is struct node in c?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
Is there a way to switch on strings?
diff between exptected result and requirement?
How can you determine the maximum value that a numeric variable can hold?
What is define c?
What is static and volatile in c?