void main()
{
printf(“sizeof (void *) = %d \n“, sizeof( void *));
printf(“sizeof (int *) = %d \n”, sizeof(int *));
printf(“sizeof (double *) = %d \n”, sizeof(double *));
printf(“sizeof(struct unknown *) = %d \n”, sizeof(struct
unknown *));
}
Answer / susie
Answer : :
sizeof (void *) = 2
sizeof (int *) = 2
sizeof (double *) = 2
sizeof(struct unknown *) = 2
Explanation:
The pointer to any type is of same size.
Is This Answer Correct ? | 5 Yes | 2 No |
void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }
void main() { while(1){ if(printf("%d",printf("%d"))) break; else continue; } }
#define a 10 void foo() { #undef a #define a 50 } int main() { printf("%d..",a); foo(); printf("%d..",a); return 0; } explain the answer
why the range of an unsigned integer is double almost than the signed integer.
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }
main() { int i=10,j=20; j = i, j?(i,j)?i:j:j; printf("%d %d",i,j); }
Program to find the largest sum of contiguous integers in the array. O(n)
How we print the table of 2 using for loop in c programing?
main() { char *p="hai friends",*p1; p1=p; while(*p!='\0') ++*p++; printf("%s %s",p,p1); }
main() { int i=4,j=7; j = j || i++ && printf("YOU CAN"); printf("%d %d", i, j); }
#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }