I was writting a program to assign the Value of N to M in the declaration statement.If i gave value of N in declaration i get the same value in output.But if i read from user ,i am getting 1 always
#include<stdio.h>
#include<conio.h>
main()
{ clrscr();
int N,M=N;
scanf("%d",&N);
printf("%d",M);
getchar();
return 0;
}