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 / hima bindu sudhani
The answer is A)100, 101
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
i want to know the procedure of qualcomm for getting a job through offcampus
What is action and transformation in spark?
How to declare pointer variables?
What is a const pointer?
What is meant by high-order and low-order bytes?
How can you call a function, given its name as a string?
What is the use of header?
swap 2 numbers without using third variable?
What is exit() function?
Describe dynamic data structure in c programming language?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What are valid operations on pointers?
What is the main difference between calloc () and malloc ()?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Explain enumerated types.