Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Specifer



" ; " after loop



Header file



Iterative statement



Working with switch case




Pointer_ summation of two numbers




// AHF C PROGRAM SOLVING

//solving here POINTER programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { float n1,n2,sum=0.0; //declaring pointer variable float *p1=&n1,*p2=&n2,*p3= & sum; printf("Enter two number: "); scanf("%f %f",p1,p2); *p3=*p1+*p2; printf("\nSummation of two number:%.2f",*p3); return 0; }
OUTPUT:


© 2018 - All rights reserved