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));
}
}
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 |
why nlogn is the lower limit of any sort algorithm?
#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }
What are segment and offset addresses?
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 .
find simple interest & compund interest
write the function. if all the character in string B appear in string A, return true, otherwise return false.
int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }
main() { int i, n; char *x = “girl”; n = strlen(x); *x = x[n]; for(i=0; i<n; ++i) { printf(“%s\n”,x); x++; } }
main() { int i=-1; +i; printf("i = %d, +i = %d \n",i,+i); }
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
void main() { int i=5; printf("%d",i+++++i); }
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.