Which is an indirection operator among the following?

Home | Discussion Forum

Which is an indirection operator among the following?

View More Related Question

2) Comment on the following C statement.

  const int *ptr;

3) What will be the output of the program ?

 #include<stdio.h>
int main()
{
char str[20] = "Hello";
char *const p=str;
*p='M';
printf("%s\n", str);
return 0;
}

4) What will be the output of the following C code?

 #include <stdio.h>
int x = 0;
void main()
{
int *const ptr = &x;
printf("%p\n", ptr);
ptr++;
printf("%p\n ", ptr);
}

5) What will be the output of the program ?

 #include<stdio.h>
int main()
{
int i=3, *j, k;
j = &i;
printf("%d\n", i**j*i+*j);
return 0;
}

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.