union u
{
union u
{
int i;
int j;
}a[10];
int b[10];
}u;
main()
{
printf("\n%d", sizeof(u));
printf(" %d", sizeof(u.a));
// printf("%d", sizeof(u.a[4].i));
}
a. 4, 4, 4
b. 40, 4, 4
c. 1, 100, 1
d. 40 400 4
Answers were Sorted based on User's Feedback
main() { int i=-1; +i; printf("i = %d, +i = %d \n",i,+i); }
Is it possible to type a name in command line without ant quotes?
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
main() { extern int i; i=20; printf("%d",i); }
4. Main() { Int i=3,j=2,c=0,m; m=i&&j||c&I; printf(“%d%d%d%d”,I,j,c,m); }
why array index always strats wuth zero?
# include <stdio.h> int one_d[]={1,2,3}; main() { int *ptr; ptr=one_d; ptr+=3; printf("%d",*ptr); }
write a c program to print magic square of order n when n>3 and n is odd?
main() { int i=10; void pascal f(int,int,int); f(i++,i++,i++); printf(" %d",i); } void pascal f(integer :i,integer:j,integer :k) { write(i,j,k); }
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
void main() { int *mptr, *cptr; mptr = (int*)malloc(sizeof(int)); printf(ā%dā,*mptr); int *cptr = (int*)calloc(sizeof(int),1); printf(ā%dā,*cptr); }
How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?