main()

{

int i, j, *p;

i = 25;

j = 100;

p = &i; // Address of i is assigned to pointer p

printf("%f", i/(*p) ); // i is divided by pointer p

}

a. Runtime error.

b. 1.00000

c. Compile error

d. 0.00000

Answer Posted / rk

d) it will print 0.0000.

If we typecast the result to float as shown below then
expected output will be printed(i.e. 1.0000)
printf("%f",(float) i/(*p) ); // i is divided by pointer p

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#include int main(void) { int a=4, b=2; a=b<>2 ; printf("%d",a); return 0; }

1065


Sir... please give some important coding questions asked by product companies..

1793


write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

4139


write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

2218


Design an implement of the inputs functions for event mode

2955






What is data _null_? ,Explain with code when u need to use it in data step programming ?

2818


To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']

488


Write a program to model an exploding firecracker in the xy plane using a particle system

3683


can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

2321


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3117


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

3705


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2254


how to test pierrot divisor

2253


How can you relate the function with the structure? Explain with an appropriate example.

2915


create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00

6304