Category: Language

18
May
2017

Lowercase to Uppercase with array

code: #include<stdio.h> char converter() { char ch[100]; gets(ch); int t,l,i; for(i=0; ch[i]!=’\0′; i++); //printf(“%d”,i); for(t=0; t<i; t++)…

18
May
2017

Pointer More Clear

code: #include<stdio.h> int main() { int var=5; int* p; //p is integer pointer which is addresss of…

17
May
2017

Value: Absolute in Function

code: #include<stdio.h> int absolute() { int n; printf(“Enter Value to Get Absolute:”); scanf(“%d”,&n); if(n<0) n=n*(-1); return n;…

17
May
2017

USD to BDT function in C

code: #include<stdio.h> double dollarToBDT(double usd) { usd=usd*78.55; return usd; } int main() { double tk, usdollar; while(printf(“Type…

17
May
2017

Find Max Value From 3 Parameters Using Function

code: #include<stdio.h> int findMax(int a,int b,int c) { int max; if(a>=b && a>=c) return a; else if(b>=a…

17
May
2017

Function Calculator

code: #include<stdio.h> double add(double a,double b) { double sum; sum = a+b; return sum; } double subtract(double…