Which of the statements is correct about the program?
#include<stdio.h>
int main()
{
float a=3. char *j;
j = (char*)&a;
printf("%d\n", *j);
return}
The following program reports an error on compilation.
#include<stdio.h>
int main()
{
float i=*j;
void *k;
k=&i;
j=k;
printf("%f\n", *j);
return}
Is the NULL pointer same as an uninitialised pointer?
What will be the output of the program ?
#include<stdio.h>
int main()
{
char str1[] = "India";
char str2[] = "BIX";
char *s1 = str*s2=str while(*s1++ = *s2++)
printf("%s", str1);
printf("\n");
return}
What will be the output of the program If the integer is 4bytes long?
#include<stdio.h>
int main()
{
int ***r, **q, *p, i=
p = &i;
q = &p;
r = &q;
printf("%d, %d, %d\n", *p, **q, ***r);
return
}
In the following program add a statement in the function fun() such that address of a gets stored in j?
#include<stdio.h>
int main()
{
int *j;
void fun(int**);
fun(&j);
return}
void fun(int **k)
{
int a= /* Add a statement here */
}
Are the three declarations char **apple, char *apple[], and char apple[][] same?
Will the program compile in Turbo C?
#include<stdio.h>
int main()
{
int a=*j;
void *k;
j=k=&a;
j++;
k++;
printf("%u %u\n", j, k);
return}
Which of the following statements correct about k used in the below statement?
char ****k;
Will the following program give any warning on compilation in TurboC (under DOS)?
#include<stdio.h>
int main()
{
int *pi= void *p p1=&i;
p2=&i;
p1=p p2=p return}