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 / jitendra kumar arya
(d),because n treat as a chracter.
ans is 100n ,101n
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
How can I change their mode to binary?
Can the sizeof operator be used to tell the size of an array passed to a function?
Which is better malloc or calloc?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
Which built-in library function can be used to match a patter from the string?
int i=10; printf("%d %d %d", i, i=20, i);
what type of questions arrive in interview over c programming?
What is variable and explain rules to declare variable in c?
What are the advantage of c language?
Why void is used in c?
What are extern variables in c?
What are the types of assignment statements?
What is modeling?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
Can a pointer be static?