Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


main()

{

static int a[3][3]={1,2,3,4,5,6,7,8,9};

int i,j;

static *p[]={a,a+1,a+2};

for(i=0;i<3;i++)

{

for(j=0;j<3;j++)

printf("%d\t%d\t%d\t%d\n",*(*(p+i)+j),

*(*(j+p)+i),*(*(i+p)+j),*(*(p+j)+i));

}

}



main() { static int a[3][3]={1,2,3,4,5,6,7,8,9}; int i,j; sta..

Answer / susie

Answer :

1 1 1 1

2 4 2 4

3 7 3 7

4 2 4 2

5 5 5 5

6 8 6 8

7 3 7 3

8 6 8 6

9 9 9 9

Explanation:

*(*(p+i)+j) is equivalent to p[i][j].

Is This Answer Correct ?    11 Yes 1 No

Post New Answer

More C Code Interview Questions

why nlogn is the lower limit of any sort algorithm?

0 Answers  


#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }

1 Answers  


What are segment and offset addresses?

2 Answers   Infosys,


write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .

2 Answers  


find simple interest & compund interest

2 Answers  


write the function. if all the character in string B appear in string A, return true, otherwise return false.

11 Answers   Google,


int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }

3 Answers   Cisco, HCL,


main() { int i, n; char *x = “girl”; n = strlen(x); *x = x[n]; for(i=0; i<n; ++i) { printf(“%s\n”,x); x++; } }

2 Answers  


main() { int i=-1; +i; printf("i = %d, +i = %d \n",i,+i); }

1 Answers  


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

0 Answers  


void main() { int i=5; printf("%d",i+++++i); }

3 Answers  


1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.

3 Answers  


Categories