main()
{
int i = 258;
int *iPtr = &i;
printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) );
}
Answer / susie
Answer :
2 1
Explanation:
The integer value 257 can be represented in binary as,
00000001 00000001. Remember that the INTEL machines are
‘small-endian’ machines. Small-endian means that the lower
order bytes are stored in the higher memory addresses and
the higher order bytes are stored in lower addresses. The
integer value 258 is stored in memory as: 00000001 00000010.
| Is This Answer Correct ? | 9 Yes | 0 No |
write a c program to Reverse a given string using string function and also without string function
main() { int i; i = abc(); printf("%d",i); } abc() { _AX = 1000; }
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
void main() { int i=5; printf("%d",i+++++i); }
Design an implement of the inputs functions for event mode
How do you sort a Linked List (singly connected) in O(n) please mail to pawan.10k@gmail.com if u can find an anser...i m desperate to knw...
6 Answers Microsoft, MSD, Oracle,
main() { char a[4]="HELLO"; printf("%s",a); }
Program to Delete an element from a doubly linked list.
4 Answers College School Exams Tests, Infosys,
struct Foo { char *pName; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); strcpy(obj->pName,"Your Name"); printf("%s", obj->pName); } a. Your Name b. compile error c. Name d. Runtime error
Write a single line c expression to delete a,b,c from aabbcc
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
How can you relate the function with the structure? Explain with an appropriate example.