write the output of following code ..
main()
{
static int a[]={10,20,30,40,50};
int *ptr=a;
static int arr[2][2]={1,2,3,4};
char str[]="ABCD * 4#";
char *s=str+2;
int i,j;
for(i=0;i<5,i++)
printf("%d",*ptr++);
for(i=0;i<2;i++)
for(j=0;j<2;j++)
printf("%d\n",*(*(n+i)+j));
printf("%c\n%c\n%c\n",*(str+2),*s++,*--s);
}
What is static memory allocation? Explain
What do you mean by dynamic memory allocation in c?
Write a C program where input is: "My name is xyz". output is: "xyz is name My".
How can I open files mentioned on the command line, and parse option flags?
Give a fast way to multiply a number by 7
15 Answers Accenture, Aricent, Microsoft,
sir, i cannot find the way how to write aprogram by using array on queue
How. To pass the entrance test
What is a segmentation fault?
Is r written in c?
Write a main() program that calls this function at least 10 times. Try implementing this function in two different ways. First, use an external variable to store the count. Second, use a local variable. Which is more appropriate?
How is a pointer variable declared?
Write a C program to convert an integer into a binary string?