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 / sathya.r
Ans: 100,100
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
How can I read and write comma-delimited text?
How can I discover how many arguments a function was actually called with?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Can we change the value of static variable in c?
What will the preprocessor do for a program?
Why do we write return 0 in c?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
What is wrong with this statement? Myname = 'robin';
Not all reserved words are written in lowercase. TRUE or FALSE?
Are pointers integers in c?
Does c have function or method?
Why do we use static in c?
what is the format specifier for printing a pointer value?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.