main()
{
int c[ ]={2.8,3.4,4,6.7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++) {
printf(" %d ",*c);
++q; }
for(j=0;j<5;j++){
printf(" %d ",*p);
++p; }
}
Answers were Sorted based on User's Feedback
main() { int i=10; i=!i>14; Printf ("i=%d",i); }
Display the time of the system and display the right time of the other country
Implement a t9 mobile dictionary. (Give code with explanation )
1 Answers Amazon, Peak6, Yahoo,
All the combinations of prime numbers whose sum gives 32
main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }
int a=1; printf("%d %d %d",a++,a++,a); need o/p in 'c' and what explanation too
‎#define good bad main() { int good=1; int bad=0; printf ("good is:%d",good); }
main() { int i = 100; clrscr(); printf("%d", sizeof(sizeof(i))); } a. 2 b. 100 c. 4 d. none of the above
main() { int i, n; char *x = “girl”; n = strlen(x); *x = x[n]; for(i=0; i<n; ++i) { printf(“%s\n”,x); x++; } }
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 works b. Will this work? c. Ok it worksWill this work? d. None of the above
main(int argc, char *argv[]) { (main && argc) ? main(argc-1, NULL) : return 0; } a. Runtime error. b. Compile error. Illegal syntax c. Gets into Infinite loop d. None of the above
main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); }