Category: Language
http://dharanyadevi.blogspot.com/2012/04/palindrome-in-c-without-using-string.html
String Upper: #include<iostream> #include<string> #include<cstdio> using namespace std; void upper_string(char st[]); int main(){ char str[100]; cout<<“Enter string:…
Vector Codes: #include<iostream> #include<cstdio> #include<vector> using namespace std; int main(){ vector<int> v; v.push_back(1); v.push_back(2); v.push_back(3); v.push_back(4); for(int…
Hackerrank problem: #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main()…
A good example of pointer code at Hacker Rank: #include <stdio.h> void update(int *a,int *b) { //…
Loops in python: fruits=[‘banana’,’apple’,’guava’] for fruit in fruits: print ‘Current Fruit:’,fruit print “Goodbye” Output: Current Fruit: banana…
Recent Comments