cast means to tell the compiler to use a different data type. in the case of a pointer, you are changing how the compiler views the memory pointed to. for example, you can cast a pointer to long (32 bit integer) as pointer to a byte array and then pull the bytes out of the long. diddle means to do something, typically a small thing. american slang, I think. no I didn't make it up.
cast means to tell the compiler to use a different data type. in the case of a pointer, you are changing how the compiler views the memory pointed to. for example, you can cast a pointer to long (32 bit integer) as pointer to a byte array and then pull the bytes out of the long.
It was just the 'cast/diddle' together which intrigued me, I wondered if it had some specific meaning? - but it's basically just two words you happened to put together.
not because of that , C can be considered as a powerful extention of pascal , or pascal is the little brother of C . so knowing pascal would ease in understanding C .
C is a Sea .
huh, C was create in the late 60s. It grew out of language called B which was heavily influenced by a language called BCPL. Nicholas Wirt came up with pascal about 10 years later.
an old compiler writers joke:
Americans pronounce his name Nickle-less Worth. Eurpeans pronounce it Nick-laus Virt. Europeans call him by name, Americans call him by value.
sorry if you don't understand call-by-name vs call-by-value...
don't forget the fact that m(b)illions of programs are there which were written in C, linux kernel is written in C , windows kernel is written in C , lot of multitasking OP are written in C . lot more C programmers than other types of programmers . well C is not a language like . it is meant for people who wish to have absolute control of the machine.
I write a lot of assembler for pentium class chips, recently have spent a lot of time trying to diagnose faults in a DPMI host. Yes amazing but DOS extenders are not dead yet.
I've been up to my eyeballs in protected mode memory management and interrupt code.. most of which is written in assembler. Course this is my job, don't think I would do it for fun
Again, it's perfectly practical, like 'StopGo' actually does. It's probably slightly less practical writing code under Windows in assembler?, but if you junk Windows it's no different to writing code for any other processor in assembler.