-
-
What would be the output of the following program? main() { const int x=5; int *ptrx; ptrx=&x; *ptrx=10; printf("%d",x); }
A) 5B) 10C) ErrorD) Garbage Value
-
Following declarations are sameconst char *s; char const *s;
A) TrueB) False
-
-
-
}
void func2(int a[][10])
{
printf("Will this work?");
}
main()
{
int a[10][10];
func1(a);
func2(a);
}
">void func1(int (*a)[10]){ printf("Ok it works");}void func2(int a[][10]){ printf("Will this work?");} main() { int a[10][10]; func1(a); func2(a);}
A) Ok it worksWill this work?B) Will this work?C) Ok it worksD) None of the above
-
-
-
-