520 views
0 0 votes

Suppose this code was given  i tested using runing the code in compiler but i dont trust the compiler 

sir can u explain me little bit in depth ::

#include <stdio.h>
struct ournode {
char x,y,z;
};
int main()
{
struct ournode p={'1','0','a'+2};
struct ournode *q=&p;
printf("%c",*(short *)q);
printf("%c",*((short *)q+1));
return 0;
}

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
1 1 answer
503
503 views
Mradul_Bhardwaj asked Feb 14, 2025
503 views
If table R has only one candidate key, then which of the following is always true?R is in 2NF, but is not in 3NFR is in 3NF, it is also in BCNFR is in 2NF, bu...
0 0 votes
2 2 answers
502
502 views
Mradul_Bhardwaj asked Feb 13, 2025
502 views
Consider the following statements:S1: Binning reduces dimensionality by aggregating data points into fewer categories.S2: OLTP focuses on complex queries and aggregations...