User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 392,326 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,779 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser:

Preparing for an interview and need some questions answered

Join Date: Mar 2004
Posts: 76
Reputation: infamous is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 2
infamous infamous is offline Offline
Junior Poster in Training

Re: Its important,Plz hlp

  #2  
Mar 23rd, 2004
1) b/c C is a minimal, spartan like language
2) shift each bit out and test it:
 unsigned int num = 0xdeadbeef;
 for(int x = 0; x < (sizeof(int) * 8); x++)
 	if(num & (1 << x) ) printf("bit %d is on\n", x);
 
3)using the `stringification' operator in a preprocessor macro:
#define(func2call) #func2call()
4)by passing some arguments by reference, or by returning a structure packed full of stuff
5)by using execve() or CreateProcess()
6)by dereferencing a p ointer to that address
7)the only limit on dynamically allocated memory is the size of ur RAM i believe
8)see above
9)by using the readdir() function
9)by suing the setrlimit() function in linux
10)looks fine to me
Reply With Quote  
All times are GMT -4. The time now is 11:06 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC