closed by
676 views
Position:
Show:

Related questions

0 0 votes
0 0 answers
1.5k
1.5k views
aashish1406 asked Jul 5, 2023
1,541 views
#includeint 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 expl...
12 12 votes
2 answers 2 answers
6.9k
6.9k views
srestha asked Jan 12, 2020
6,889 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...
18 18 votes
3 answers 3 answers
10.9k
10.9k views
srestha asked Jan 12, 2020
10,890 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(...
0 0 votes
1 1 answer
1.6k
1.6k views
sim1234 asked Dec 2, 2018
1,607 views
Consider the following C code segment:#include main() { int i, j , x ; scanf("%d", &x); i = 1 ; j = 1; while ( i< 10 ) { j = j * i; i = i + 1; if (i == x) break ; } }For ...