#include<stdio.h>

main()

{

int a[3];

int *I;

a[0]=100;a[1]=200;a[2]=300;

I=a;

Printf(“%d\n”, ++*I);

Printf(“%d\n”, *++I);



Printf(“%d\n”, (*I)--);

Printf(“%d\n”, *I);

}

what is the o/p



a. 101,200,200,199

b. 200,201,201,100

c. 101,200,199,199

d. 200,300

Answer Posted / ashwini

c

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program in c language to print your bio-data on the screen by using functions.

6251


Explain what is wrong with this statement? Myname = ?robin?;

1027


What is a void pointer in c?

608


What is meant by preprocessor in c?

536


What is array of structure in c?

594






A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?

1511


What is the benefit of using #define to declare a constant?

607


How is a pointer variable declared?

594


With the help of using classes, write a program to add two numbers.

619


How can I implement a delay, or time a users response, with sub-second resolution?

625


What is pointer to pointer in c?

634


How do you generate random numbers in C?

659


What is enumerated data type in c?

627


what is a function method?give example?

1914


Differentiate abs() function from fabs() function.

597