Hello guys,i have faced a qs in a ainterview yesterday....I cant solve it ..........
i take an input n(an integer no) from user.and i have to print o/p 2*n in the console without using + and * in the program....
Hello guys,i have faced a qs in a ainterview yesterday....I cant solve it ..........
i take an input n(an integer no) from user.and i have to print o/p 2*n in the console without using + and * in the program....
It's hard to determine what you're asking for because of your grammar. I think you want this:
Shifting to the left by one gives the affect of multiplying by two.Code:int n = 5; n <<= 1;
Yog Sothoth!
Will you please stop with the shotgun approach already? I'm seriously growing concerned that you are going to break the internet!
Soma
thanks buddy...for ur reply...........
bt i dont think there is any prob regarding my grammar except a spelling mistake......
thanks.........
If I could answer someones question, why wouldn't I? I only logged in to check for replies to my thread. If you aren't going to contribute to the thread then don't say anything at all. It's not like I'm on these forums 24/7 nor is it like I have 3829 post. Lets see me "break the internet".
I think Sycal's response was both informative and appropriate.
How the hell can someone "break the internet" with 24 posts in 3 years, is beyond me. Syscal: we've both been on here for almost 3 years, and we can sort out the few Nazis that frequent here.
Seig Heil! Guten tag. oh, I almost forgot:Code:MyPostCount++ ;
O_oIf I could answer someones question, why wouldn't I? I only logged in to check for replies to my thread. If you aren't going to contribute to the thread then don't say anything at all. It's not like I'm on these forums 24/7 nor is it like I have 3829 post. Lets see me "break the internet".
o_OHow the hell can someone "break the internet" with 24 posts in 3 years, is beyond me. Syscal: we've both been on here for almost 3 years, and we can sort out the few Nazis that frequent here.
Yog Sothoth!
I think you two, Char*Pntr and Syscal, must be a little stupid.
I WAS TALKING TO THE ORIGINAL POSTER!
He has posted the same few questions in dozens of forums over the last few weeks, often posting multiples of the same question at the same time, has bumped decade old threads to ask one of the questions, has ignored every answer he has got, and generally been inflammatory where he has responded.
Soma
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"
It took me a few days to "pause and reflect" an angry exchange that I made on this thread.
I almost used the word "responded to." No, it was hardly that. I reacted. In my reaction, I used unprofessional language that is completely unbecoming of the professionals on this board.
To the people on this board, I am very sorry. I lost my temper when I thought a fellow member was being harassed.
It took me a few days to consider. Tonight while eating dinner, I remembered something on this thread from Imalc.... that was "Time to Man Up."
Tonight I realized, that it doesn't matter what whom said to who - or who the original flame was directed to.
I realized tonight, that it was I, who was wrong with my reaction. Since then, I have been monitoring a thread on the C-board, a bit heated at times, but they always quote the source they are replying to. But everyone there acts professionally.