335 views
1 votes
1 votes

main()

{

  int a ;

char *x;

x = ( char *)&a;

a = 512 ;

x[0] = 2 ;

x[1] = 2 ;

printf("%d",a);

}

Please log in or register to answer this question.

Related questions

799
views
3 answers
7 votes
Parshu gate asked Nov 20, 2017
799 views
What is the output of the following program?#include<stdio.h int main() { int array[]={10, 20, 30, 40}; printf(ā€œ%dā€, -2[array]); return 0; }$-60$$-30$$60$Garbage valu...
1.5k
views
1 answers
3 votes
Parshu gate asked Nov 13, 2017
1,474 views
main( ){int n[3][3] = {2, 4, 3,6, 8, 5,3, 5, 1} ;printf ( "\n%d %d %d", *n, n[3][3], n ) ;}
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 4.1 6% 2.7 3% 72 1.5 2% 2 0.0 0% 569k 51%
Control 12.9 19% 1.8 2% 5 11.5 17% 12 0.0 0% 190k 17%
View 2.9 4% 2.9 4% 12 0.0 0% 0 0.0 0% 95k 8%
Theme 41.1 60% 4.4 6% 15 36.7 54% 3 0.0 0% 251k 22%
Stats 6.5 9% 0.1 0% 0 6.4 9% 1 0.0 0% 0k 0%
Total 67.4 100% 11.8 17% 104 56.2 83% 18 0.0 0% 1108k 100%