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...
How to read/write using Pipe's in C
#include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <stdlib.h> i...
No comments:
Post a Comment