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
Answers were Sorted based on User's Feedback
Answer / jitendra kumar arya
(d),because n treat as a chracter.
ans is 100n ,101n
| Is This Answer Correct ? | 1 Yes | 3 No |
Answer / 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 |
What is the collection of communication lines and routers called?
What the different types of arrays in c?
Define Spanning-Tree Protocol (STP)
write a c program to find the probability of random numbers between 1-1000
how to use showbits function?
Write a program to reverse a string.
0 Answers Global Logic, iNautix, TCS, Wipro,
#include<stdio.h> #include<conio.h> void main() { char ch='\356'; printf("%d",ch); } o/p=-18 why?plz.explain
Add 2 64 bit numbers on a 32 bit machine
3 Answers EMC, Hyderabad Central University, NetApp,
What do you mean by scope of a variable in c?
what is the difference between 123 and 0123 in c?
What is null character in c?
What is clrscr in c?