Category: A ll Codes

04
Apr
2017

C refresh for logic development

Code: #include<stdio.h> int main() { int N1,N2,ch,resi; float resf; do { printf(“\n\n Enter value for operation:”); printf(“\n…

03
Apr
2017

How to extract a single digit from a number

Divide a number by 10 will give you a digit as int sample: 256/10=25.6==25 25/10=2.5==2 256%10=6 25%10=5…

27
Mar
2017

Bitwise Shifting in C

#include<stdio.h> int main(void){ unsigned int i; int j; i=1; /*left shifts */ for(j=0;j<4;j++){ i=i<<1; printf(“Left Shift %d:…

17
Mar
2017

Stack

Vid: Code: Array Implementation: #include<iostream> using namespace std; #define MAX_SIZE 101 int A[MAX_SIZE]; int top=-1; //top==index of…

10
Mar
2017

C Refresh

20
Feb
2017

Best, Average, Worst Case

cheat sheet: http://bigocheatsheet.com/ Good for Programmers: It’s also good: It’s good for space complexity and cost. Golden…