Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Specifer



Working with switch case



" ; " after loop



Header file



Test expression




Pointer_ calculate area of a circle




// AHF C PROGRAM SOLVING

//solving here POINTER programming problem

#include<stdio.h> #define pf printf int main() { float r,area; float *r1=&r,*r2= & area; pf("Enter the radius: "); scanf("%f",r1); *r2=3.14*pow(*r1,2); pf("\nThe area of the circle= %f",*r2); return 0; }
OUTPUT:


© 2018 - All rights reserved