Crack Query - Leadership Interview
Home
Google - Engineering Manager Interview Prep
System Design Preparation
Design Patterns
Object Oriented Designing
Thursday, 3 April 2014
Endian-ness of the System
#include<iostream.h>
union
{
int a;
char b[4];
}obj;
int main()
{
obj.a=0x1;
cout<<obj.b[0]<<" "<<obj.b[3]<<endl;
printf("%d %d",obj.b[0],obj.b[3]);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
AWS Data Pipeline Services
https://www.youtube.com/watch?v=tykcCf-Zz1M
Maximum of a Tree
Here is the simple code for finding the maximum of a BST: /* Tree Maximum */ Tree* maxTree(struct Tree *node) { while(node->right) nod...
Tree Operations
#include<iostream.h> #include<conio.h> #include<stdlib.h> class Node{ public: Node* left; Node* right; in...
Good Links
Follow this order for design interview prep: Connect to Arslan Ahmad on linked in, lot of good quick cheet sheets you get from Arslan on s...
No comments:
Post a Comment