Category: C

15
Feb
2017

String and Hackerearth

String Upper: #include<iostream> #include<string> #include<cstdio> using namespace std; void upper_string(char st[]); int main(){ char str[100]; cout<<“Enter string:…

13
Feb
2017

A good Array Example

Hackerrank problem: #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main()…

12
Feb
2017

A good example of pointer code at Hacker Rank

A good example of pointer code at Hacker Rank: #include <stdio.h> void update(int *a,int *b) { //…

02
Jan
2017

String Compare in C/C++

http://stackoverflow.com/questions/8004237/how-do-i-properly-compare-strings-in-c

23
Jul
2016

Flags in C

Reference: https://www.daniweb.com/programming/software-development/threads/201233/use-of-flag-in-c

30
Jun
2016

How to count numbers from string ?

code: #include<stdio.h> #include<stdlib.h> int main(){ char line[]=”1 -2 10000 -50 20 7 445 -4″; char *p,*e; long…