Cannot get the ouput code?

// Copyright (C) Tony 2010 <tonytran@charter.net>


#include <iostream>

int main()
{
// what is the output of the c++ code?
int x;
int y;
int *p = &x;
int *q = &y;
x = 35;
y = 46; p = q;
*p = 78
cout << x << " " << y << endl;
cout << *p << " " << *q << endl;


return 0;


}
Please use [code][/code] tags

If the question is "What is the output of the code I posted?"
The answer is "Compile it and run it to find out"
I have tried that and compiler sent out error message
You forgot a semicolon:
*p=78;
y = 46; p = q; should be a comma. y=46, p=q;
y = 46; p = q; should be a comma. y=46, p=q;

Why?
Ooops sorry about that, I didn't saw that's already been declared. (3:09 AM since my last post)
Topic archived. No new replies allowed.