Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionThe output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 4:20
venkatasu21-Oct-09 4:20 
AnswerRe: The output seem confusing please clear my doubt Pin
Chuck O'Toole21-Oct-09 4:25
Chuck O'Toole21-Oct-09 4:25 
GeneralRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 4:59
venkatasu21-Oct-09 4:59 
GeneralRe: The output seem confusing please clear my doubt Pin
Chuck O'Toole21-Oct-09 5:01
Chuck O'Toole21-Oct-09 5:01 
GeneralRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 5:06
venkatasu21-Oct-09 5:06 
GeneralRe: The output seem confusing please clear my doubt Pin
Chuck O'Toole21-Oct-09 5:07
Chuck O'Toole21-Oct-09 5:07 
GeneralRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 5:13
venkatasu21-Oct-09 5:13 
QuestionRe: The output seem confusing please clear my doubt Pin
David Crow21-Oct-09 5:16
David Crow21-Oct-09 5:16 
venkatasu wrote:
You told me to fix the size.


Nothing was mentioned about changing the size of the array. Arrays are 0-based.

venkatasu wrote:
Mr crow told to increment later in the loop. But its should be there in the while part itself.


I did not say to move the increment statement outside of the while() loop. What part of

while (i < 5)
{
    cout << i << endl;
    result[i] = x[i] + y[i];
    i++;
}
troubles you?

"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


AnswerRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 5:42
venkatasu21-Oct-09 5:42 
GeneralRe: The output seem confusing please clear my doubt Pin
David Crow21-Oct-09 5:47
David Crow21-Oct-09 5:47 
GeneralRe: The output seem confusing please clear my doubt Pin
Chuck O'Toole21-Oct-09 5:20
Chuck O'Toole21-Oct-09 5:20 
GeneralRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 5:44
venkatasu21-Oct-09 5:44 
GeneralRe: The output seem confusing please clear my doubt Pin
David Crow21-Oct-09 5:49
David Crow21-Oct-09 5:49 
AnswerRe: The output seem confusing please clear my doubt Pin
David Crow21-Oct-09 4:33
David Crow21-Oct-09 4:33 
GeneralRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 4:57
venkatasu21-Oct-09 4:57 
AnswerRe: The output seem confusing please clear my doubt Pin
David Crow21-Oct-09 5:00
David Crow21-Oct-09 5:00 
GeneralRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 5:03
venkatasu21-Oct-09 5:03 
GeneralRe: The output seem confusing please clear my doubt Pin
David Crow21-Oct-09 5:08
David Crow21-Oct-09 5:08 
GeneralRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 6:10
venkatasu21-Oct-09 6:10 
GeneralRe: The output seem confusing please clear my doubt Pin
Richard MacCutchan21-Oct-09 6:25
mveRichard MacCutchan21-Oct-09 6:25 
GeneralRe: The output seem confusing please clear my doubt Pin
David Crow21-Oct-09 6:32
David Crow21-Oct-09 6:32 
GeneralRe: The output seem confusing please clear my doubt Pin
Tim Craig21-Oct-09 20:02
Tim Craig21-Oct-09 20:02 
GeneralRe: The output seem confusing please clear my doubt Pin
Chuck O'Toole21-Oct-09 5:05
Chuck O'Toole21-Oct-09 5:05 
AnswerRe: The output seem confusing please clear my doubt Pin
transoft21-Oct-09 7:05
transoft21-Oct-09 7:05 
Questionnumbers with boxes Pin
kbury21-Oct-09 3:59
kbury21-Oct-09 3:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.