Discuss What is wrong; in the C Programming forum on Dev Shed. What is wrong; C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
Posts: 24
Time spent in forums: 6 h 27 m 36 sec
Reputation Power: 0
What is wrong;
hi to all,
can someone help me
to find out what is wrong into this code and i cannot print the x;
Code:
# include <stdio.h> # include <stdlib.h> # include <iostream> # include<conio.h> main() { int p[6]; int i,c; int x; printf("Give me 6 number\n"); for(i=0;i<6;i++); scanf("%d",&p[i]); printf("%d\n",p[i]); x=p[1]+p[2]; printf("%d\n ",x); system("pause"); }