Category: Logic Logic

02
Jul
2017

Hackerearth: COUNT NUMBERS

code: #include<bits/stdc++.h> using namespace std; int main() { int t,n,i,a; string s; cin>>t; while(t–) { int c=0;…

19
May
2017

Return More Than one Value in a Function

In function we can’t retun more than one value with return keyword. In this case we need pointer…

19
May
2017

Pointer More More Clear

/* Zaki Live pointer important topic */ #include<stdio.h> int main() { int *p,*q,**k; int x=100; p=&x; //p…

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…