Wednesday, June 16, 2010

Some question

CA
Remote login Through C code ?
Return of printf?  printf("%d",m) whede m = 987

-------------juniper

Endianess happens because of what ? why cant OS take  care of it ?
how to write code which can be easily ported across OS?
Static Function?
Hashing how to decide hash funciton?
AVL tree ,  bst--Binary tree ? Complexity ot binary tree?  how nlogn comes?
---------------------------------
LG.
Q If i do malloc for 64 MB will it go if yes how .  Does process memory increases .
Q Is Stack frame Size constant .  what is stack corruption.
Q Use of extern in C++
Q Can we have static  Ctor od Dtor  if not why??
Press ENTER to look up in Wiktionary or CTRL+ENTER to look up in Wikipedia

Friday, June 11, 2010

Linux Find If Processor / CPU is 64 bit / 32 bit ( long mode ~ lm )

for OS

uname -a

 CPU
grep flags /proc/cpuinfo 

CPU Modes:

lm means Long mode - 64 bit CPU

Real mode 16 bit CPU

Protected Mode is 32-bit CPU