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 / divakar
ouput will be c)a=101 (*p)=101
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Is there anything like an ifdef for typedefs?
What are control structures? What are the different types?
Write a program to print factorial of given number using recursion?
What is int main () in c?
Explain 'bit masking'?
Explain what is wrong with this statement? Myname = ?robin?;
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What is assignment operator?
Why does notstrcat(string, "!");Work?
How can variables be characterized?
Define macros.
writ a program to compare using strcmp VIVA and viva with its output.
What is the scope of an external variable in c?