Discussion in 'Computer Science | IT | Networking' started by simplycoder, Aug 20, 2011.
the i modification statements are undefined. Different compilers may produce different outputs which cannot be judged. The pre-, -post increments are not supposed to be used in this way since the main reason for using the increments is controlling the loops. The above snippet causes ambiguity or confusion to the compiler as the same value is being incremented in several ways. hence, different compilers produce different outputs!
Okay guys Here's a simple question!!
QUE:: Write a program to make a number HALF without using ' / '
Post your code snippets!
as my knowledge is concern if increment is applied three or more than three it increse twice in value.
am also agree that increment nd decrement op are used in loop.so no need more discussion over it.diffrent compiler may give diffrent result.its also true.
can v try it as following sir?hahaha
sir?? I'm just a 2nd year student
by the way, your code just needs a quoted %d in printf() statement, everything is fine after that. haha
Any other ways to do it??
yes u r write
try this code for first inverted triangle
cout<<" "<<"*"<<" ";
you can do the second one by simply reversing the above loops
This logic does not work on the floating point numbers..(i think..) . A much simpler and effective way is this:
thanx i learned new thing.my math is not so good.
Do you mean to say that you forgot your password for Win 7
Just remove the Cmos battery in the desktop that will reset all your passwords
hello engineers, how are you all? Nice to meet you all here again.
Thanks.. Please tell me about library function. And what the major difference between C and C++.
i want to know how any number multiplied by 0.5 becomes half.
Hey there .5 = 5/10 = 1/2
Hope you got it
But this is not a place to start fresh ideas buddy try to shift your new questions to threads
thanx i got it.mens if v want to make half 13.then 13*0.5=188.8.131.52=5/10=1/2*13=6.5.right!
I am confused in your statement but the last part of your answer works the way you say
what will be the output and why
the output comes as no..as i have compiled it ...plz expalin me how
Separate names with a comma.