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 / sridevi.halli
answer is d)none of the above
bcoz in line p=&a it will gve error
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
What is n in c?
using for loop sum 2 number of any 4 digit number in c language
Explain the properties of union.
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
List some basic data types in c?
What do you mean by a local block?
In which header file is the null macro defined?
What is c basic?
What is a good way to implement complex numbers in c?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
How can I use a preprocessorif expression to ?
please give me some tips for the placement in the TCS.
Difference between goto, long jmp() and setjmp()?