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
What are preprocessor directives in c?
How can I access an I o board directly?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
What are structural members?
int i=10; printf("%d %d %d", i, i=20, i);
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What are different types of pointers?
Explain the meaning of keyword 'extern' in a function declaration.
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
What are the types of i/o functions?
Explain what is output redirection?
What are nested functions in c?
what is the significance of static storage class specifier?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
How to implement a packet in C