#include<iostream.h>
int x = 10 ;
void main( )
{
int x = 20;
::x = x + ::x;
cout <<x;
}
Type: Posts; User: shivakumar
#include<iostream.h>
int x = 10 ;
void main( )
{
int x = 20;
::x = x + ::x;
cout <<x;
}
Can anyone please tell me which book to refer to understand how each statement in c are compiled i.e How compiler is going to evaluate each statement.I know 'C' language and Data structures and have...
Thank you......
#include<stdio.h>
int fun(int num);
void main()
{
int p,n=20;
p=fun(n);
printf("%d",p);
getch();
}
#include<stdio.h>
void main()
{
int a;
printf("a contains %d\n");
}
this is giving some junk value where as
#include<stdio.h>