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


Please Help Members By Posting Answers For Below Questions

An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode

617


Dont ansi function prototypes render lint obsolete?

616


What do you understand by friend-functions? How are they used?

659


write a program to find out prime number using sieve case?

1648


Explain what is the purpose of "extern" keyword in a function declaration?

631






Why is c so important?

606


Is there any demerits of using pointer?

641


#include { printf("Hello"); } how compile time affects when we add additional header file .

1437


write a program to create a sparse matrix using dynamic memory allocation.

4379


Can we assign integer value to char in c?

625


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1474


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

1393


Write a program to print fibonacci series using recursion?

597


Can we declare a function inside a function in c?

606


What are the functions to open and close file in c language?

739