Are the following declarations same?
char far *far *scr;
char far far** scr;
What will be the output of the program under DOS?
#include<stdio.h>
int main()
{
char huge *near *far *ptr char near *far *huge *ptr char far *huge *near *ptr printf("%d, %d, %d\n", sizeof(ptr1), sizeof(**ptr2), sizeof(ptr3));
return}
What will be the output of the program?
#include<stdio.h>
int main()
{
struct s {
char *z;
int i;
struct s1 *p;
};
static struct s1 a[] = {{"Nagpur",a+, {"Chennai",a+,
{"Bangalore",a} };
struct s1 *ptr = a;
printf("%s,", ++(ptr->z));
printf(" %s,", a[(++ptr)->i].z);
printf(" %s", a[--(ptr->p->i)].z);
return
}
What will be the output of the program?
#include<stdio.h>
int main()
{
char huge *near *ptr
char huge *far *ptr
char huge *huge *ptr
printf("%d, %d, %d\n", sizeof(ptr1), sizeof(ptr2), sizeof(ptr3));
return
}
What do the following declaration signify?
char **argv;Declare the following statement?
"A pointer to a function which receives an int pointer and returns float pointer".
float *(ptr)*int;float *(*ptr)(int)float *(*ptr)(int*)float (*ptr)(int)Declare the following statement?
"An array of three pointers to chars".
char *ptr[3]();char *ptr[3];char (*ptr[3])();char **ptr[3];What will be the output of the program in Turbo C?
#include<stdio.h>
int main()
{
char near *near *ptr char near *far *ptr char near *huge *ptr printf("%d, %d, %d\n", sizeof(ptr1), sizeof(ptr2), sizeof(ptr3));
return}
What do the following declaration signify?
char *scr;What do the following declaration signify?
void *cmp();What do the following declaration signify?
int *ptr[30];Declare the following statement?
"A pointer to a function which receives nothing and returns nothing".
void *(ptr)*int;void *(*ptr)()void *(*ptr)(*)void (*ptr)()Declare the following statement?
"A pointer to an array of three chars".
char *ptr[3]();char (*ptr)*[3];char (*ptr[3])();char (*ptr)[3];What do the following declaration signify?
char *arr[10];What do the following declaration signify?
int *f();What do the following declaration signify?
int (*pf)();What do the following declaration signify?
void (*cmp)();