Answer Posted / vishnu
int main()
{
int *ptr;
ptr = (int *)0x2000;
*ptr = 10;
printf("%d", *ptr);
}
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
In C language, a variable name cannot contain?
What is the advantage of an array over individual variables?
What are categories used for in c?
What is string length in c?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
What is hungarian notation? Is it worthwhile?
What are directives in c?
What are the usage of pointer in c?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What are register variables? What are the advantage of using register variables?
What is the purpose of 'register' keyword?
Write a program to check armstrong number in c?
Why is c so popular?
How do you sort filenames in a directory?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.