Having problems with Visual Studio 2013

This is my code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <cstdio>
#include <iomanip>
#include <iostream>
using namespace std;

int main(int argc, char ** argv)
{
	int y;
	x = 34;

	printf("x is %d"), x;
	system("pause");
	return 0;
}

and it outputs "x is 20779573Press any key to continue..."
when it should be outputting "x is 34....."
Last edited on
Look carefully at line 11 and the syntax of your function call.
Ohhhhhhhh. haha I can't believe I didn't notice that. Thanks!
Topic archived. No new replies allowed.