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
#include<stdio.h> main() { register i=5; char j[]= "hello"; printf("%s %d",j,i); }
What are the files which are automatically opened when a C file is executed?
write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30
Link list in reverse order.
Write a procedure to implement highlight as a blinking operation
void main() { static int i; while(i<=10) (i>2)?i++:i--; printf(ā%dā, i); }
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
what is brs test reply me email me kashifabbas514@gmail.com
Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like.
21 Answers ABC, eBay, Goldman Sachs, Google, HUP, Microsoft, TATA,
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }
Code for 1>"ascii to string" 2>"string to ascii"
1 Answers Aricent, Global Logic,
main() { int i = 100; clrscr(); printf("%d", sizeof(sizeof(i))); } a. 2 b. 100 c. 4 d. none of the above