Given a piece of code
int x[10];
int *ab;
ab=x;
To access the 6th element of the array which of the
following is incorrect?
(A) *(x+5) (B) x[5] (C) ab[5] (D) *(*ab+5} .
Answers were Sorted based on User's Feedback
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
why do some people write if(0 == x) instead of if(x == 0)?
main() { int a[10]; printf("%d",*a+1-*a+3); }
#include<stdio.h> void main() { int =1; printf("%d%d%d",a++,++a,++a); }
What is use of integral promotions in c?
1. Write a program to reverse every second word in a given sentence.
How to throw some light on the b tree?
How to print "Hi World" without using semi colon?
What does %c mean in c?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
What is non linear data structure in c?
cavium networks written test pattern ..