What is the question / doubt with regard to this program where you are displaying the value in hex after inverting the bits ?
#include <stdio.h> #include <time.h> /* this is not a complete program but it should be easy to complete and convert to a working program...
To get the code for Turbo C library functions you need to use tlib (included with turboc) - extract the function from the corresponding library...
Arrays declared as local variables may not be initialized as these are created on the stack - declare the 2 arrays as global variables and see if...
#include <ctype.h> #include <string.h> int validate_email(char* mailaddr) { /* allow alpha, digits, @ and underscore - you can modify...
Doing it in VB will be the easiest but then this will not be the appropriate forum for discussing that (VB). You can do it in VC++ using a...
To my knowledge Turbo C is meant ONLY for MS-DOS (I dont think a Windows version is available - you have Borland C++ for windows). The Turbo C...
C or C++ program - that's immaterial! Did you create (compile) your program in Windows - if so, the program may be dependent on DLLs. If the...
Just try printf("size of int : %d\n", sizeof(int)) in TurboC (freeware 2.01 originally for MS DOS) and in borland C++ freeware for windows (bcc32)...
#include <stdio.h> /* the code is also attached as a zip file - the program is demonstrated for 3/13 as 6/55 will produce a huge listing...
(a + 1) is treated as (int *) and sizeof(a + 1) returns 4
Sorry, I did not understand your query correctly! Yes, since pointers hold numbers which are memory addresses the size of a pointer is the same...
Pointers need not necessarily be 4 bytes - since pointers hold addresses they should be large enough to address the maximum memory that the OS...
Graphics is a huge topic. Windows is relatively easy to start with graphics. 'Programming Windows by Petzold' is a good book to start with....
You should declare as struct cards { char* loc; int pay; }; 'char' is a single byte - in fact it is just an integer with range -128 to...
Separate names with a comma.