• closed by
1,542 views
0 0 votes
closed as a duplicate of: ISRO CSE 2020 | Question: 62
#include

int main()

{ int x;

char *ptr;

x=622,100,101;

printf("%d",(*(char *)&x)*(x%3));

return 0;   

}

In this question what is the meaning of “   *(char *)&x    “ ? please explain it.
Position:
Show:

Related questions

18 18 votes
3 answers 3 answers
11.0k
11.0k views
srestha asked Jan 12, 2020
10,955 views
What is output of the following ‘C’ code assuming it runs on a byte addressed little endian machine?#include<stdio.h int main() { int x; char *ptr; x=622,100,101; printf(...
12 12 votes
2 answers 2 answers
6.9k
6.9k views
srestha asked Jan 12, 2020
6,922 views
What is the output in a $32$ bit machine with $32$ bit compiler?#include<stdio.h rer(int ptr2, int ptr1) { int *ii; ii=*ptr2; *ptr2=*ptr1; *ptr1=ii; ptr1*= ptr2; ptr2...
9 9 votes
10 answers 10 answers
20.1k
20.1k views
Satbir asked Jan 13, 2020
20,075 views
Consider a $2$-dimensional array $x$ with $10$ rows and $4$ columns, with each element storing a value equivalent to the product of row number and column number. The arra...
9 9 votes
5 5 answers
7.6k
7.6k views
Satbir asked Jan 13, 2020
7,553 views
What is the output of the code given below?# include<stdio.h int main() { char name[]="satellites"; int len; int size; len= strlen(name); size = sizeof(name); printf("%d"...