Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Comment



" ; " after loop



Test expression



Header file



Iterative statement




Pointer_ find biggest number among three




// AHF C PROGRAM SOLVING

//solving here POINTER	programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { int a,b,c; int *n1=&a,*n2=&b,*n3= & c; int large,*n4= & large; pf("Enter three number: "); scanf("%d %d %d",n1,n2,n3); *n4=*n1>*n2?(*n1>*n3?*n1:*n3):(*n2>*n3?*n2:*n3); pf("\nLARGE= %d",*n4); return 0; }
OUTPUT:


© 2018 - All rights reserved