Click here to Skip to main content
15,792,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionThe output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 5:20
venkatasu21-Oct-09 5:20 
AnswerRe: The output seem confusing please clear my doubt Pin
Chuck O'Toole21-Oct-09 5:25
Chuck O'Toole21-Oct-09 5:25 
GeneralRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 5:59
venkatasu21-Oct-09 5:59 
GeneralRe: The output seem confusing please clear my doubt Pin
Chuck O'Toole21-Oct-09 6:01
Chuck O'Toole21-Oct-09 6:01 
GeneralRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 6:06
venkatasu21-Oct-09 6:06 
GeneralRe: The output seem confusing please clear my doubt Pin
Chuck O'Toole21-Oct-09 6:07
Chuck O'Toole21-Oct-09 6:07 
GeneralRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 6:13
venkatasu21-Oct-09 6:13 
QuestionRe: The output seem confusing please clear my doubt Pin
David Crow21-Oct-09 6:16
David Crow21-Oct-09 6: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 6:42
venkatasu21-Oct-09 6:42 
GeneralRe: The output seem confusing please clear my doubt Pin
David Crow21-Oct-09 6:47
David Crow21-Oct-09 6:47 
GeneralRe: The output seem confusing please clear my doubt Pin
Chuck O'Toole21-Oct-09 6:20
Chuck O'Toole21-Oct-09 6:20 
GeneralRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 6:44
venkatasu21-Oct-09 6:44 
GeneralRe: The output seem confusing please clear my doubt Pin
David Crow21-Oct-09 6:49
David Crow21-Oct-09 6:49 
AnswerRe: The output seem confusing please clear my doubt Pin
David Crow21-Oct-09 5:33
David Crow21-Oct-09 5:33 
GeneralRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 5:57
venkatasu21-Oct-09 5:57 
AnswerRe: The output seem confusing please clear my doubt Pin
David Crow21-Oct-09 6:00
David Crow21-Oct-09 6:00 
GeneralRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 6:03
venkatasu21-Oct-09 6:03 
GeneralRe: The output seem confusing please clear my doubt Pin
David Crow21-Oct-09 6:08
David Crow21-Oct-09 6:08 
GeneralRe: The output seem confusing please clear my doubt Pin
venkatasu21-Oct-09 7:10
venkatasu21-Oct-09 7:10 
GeneralRe: The output seem confusing please clear my doubt Pin
Richard MacCutchan21-Oct-09 7:25
mveRichard MacCutchan21-Oct-09 7:25 
GeneralRe: The output seem confusing please clear my doubt Pin
David Crow21-Oct-09 7:32
David Crow21-Oct-09 7:32 
GeneralRe: The output seem confusing please clear my doubt Pin
Tim Craig21-Oct-09 21:02
Tim Craig21-Oct-09 21:02 
GeneralRe: The output seem confusing please clear my doubt Pin
Chuck O'Toole21-Oct-09 6:05
Chuck O'Toole21-Oct-09 6:05 
AnswerRe: The output seem confusing please clear my doubt Pin
transoft21-Oct-09 8:05
transoft21-Oct-09 8:05 
Questionnumbers with boxes Pin
kbury21-Oct-09 4:59
kbury21-Oct-09 4: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.