#includestdio.hint main(){int*pc,c;c=55;pc=&c;*pc=++c;printf("%d",*pc);printf("%d",c);return 0;}
struct { short s[5]; union { float y; long z; }u; } t;
Assume that objects of the type short, float and long occupy 2 bytes, 4 bytes and 8 bytes, respectively. The memory requirement for variable t, ignoring alignment considerations, is
#include stdio.h
int main() {
int a[] = {1, 2, 3, 4};
int sum = 0;
for(int i = 0; i 4; i++)
{
sum += a[i];
}
printf("%d", sum);
return 0;
}
#includestdio.hFind the output of the code will be :-using namespace std;int main(){int array[] = {10, 20, 30};cout -2[array];return 0;}
What will be the output of the following C code considering the size of a short int is 2, char is 1 and int is 4 bytes?#include stdio.hint main(){short int i = 20;char c = 97;printf("%d, %d, %d\n", sizeof(i), sizeof(c), sizeof(c + i));return 0;}
double a = 0.1 + 0.2:WhatÂ’s the output of this Java snippet?double b = 0.3;if(a != b)System.out.print ( "Hey! ") ;