study the code:
#include<stdio.h>
void main()
{
const int a=100;
int *p;
p=&a;
(*p)++;
printf("a=%dn(*p)=%dn",a,*p);
}
What is printed?
A)100,101 B)100,100 C)101,101 D)None of the
above
Answer Posted / venkataramani kumar.t.b.
The Answer is C) a=101 and (*p)=101.
Since the variable is not directly accessed and it
increments thru' the pointer, so the answer is valid
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
Are enumerations really portable?
Explain what’s a signal? Explain what do I use signals for?
What is return type in c?
Does c have circular shift operators?
What is static and volatile in c?
What is C language ?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
How will you write a code for accessing the length of an array without assigning it to another variable?
What are the 5 types of organizational structures?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
What are static variables in c?
Difference between pass by reference and pass by value?
What is c system32 taskhostw exe?