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 / sundar
the output is
a=100n(*p)=101n
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Explain b+ tree?
What is the best way of making my program efficient?
How will you divide two numbers in a MACRO?
What is formal argument?
Explain how do you override a defined macro?
Why string is used in c?
Who developed c language and when?
What are the differences between new and malloc in C?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
What is the purpose of sprintf?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
Explain built-in function?
What is the code in while loop that returns the output of given code?
Explain what is the benefit of using const for declaring constants?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?