Redirected
793 views
0 votes
0 votes

Approach?

Consider the following C program?

#include<stdio.h>
int main()
{
    short int c[5];
    int i=0;
    for(i=0;i<5;i++)
    c[i]=400+i;
    char *b = (char *)c;
    printf("%d", *(b+8));
}

The output of above program, when ‘short int take ‘2 B’ and character take 1 B to represent _________. (Assume memory storage follows Little Endian architecture).

1 Answer

Related questions

2 votes
2 votes
2 answers
1
Mrityudoot asked Apr 23, 2023
282 views
Why can’t we do pointer initialization as int *p; *p=x; instead of p = &x; ?
0 votes
0 votes
3 answers
2
Crackca asked Sep 9, 2021
959 views
Suppose you have a singly Linked List of n nodes and you want to insert a node in the middle of the Linked List, At least how many pointers do you need to handle to perfo...