Hot answers tagged programming
24
COBOL is not particularly popular on Linux but there are compilers available. One of these is open-cobol.
First step is to check if it's installed on your system: it probably isn't.
whereis cobc; which cobc
cobc:
If like my system it is not installed you can install it with
sudo apt-get install open-cobol
And to check its installed whereis cobc; ...
3
I just checked my installation of 13.04, and Mono is not installed.
To install Mono, this will install Mono Run-time, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
sudo apt-get install mono-runtime
If mono Develop is what you're after, then
sudo apt-get install monodevelop
Mono focuses on compilers ...
2
It's easiest to install using the Ubuntu Software Center. Just search for "mono" in Ubuntu Software Center and you can install it from there. It's called "MonoDevelop". You can also use this link:
http://apt.ubuntu.com/p/monodevelop
2
I don't think I understand why there's a problem but I think GCC might have something to do with it... Here's a comparison between GCC and Clang.
$ gcc -o test.gcc test.c
$ ./test.gcc
Size a: 4
size b: 4
Address a: 0x7fffeef71488
Address b: 0x7fffeef7148c
$ clang++ -o test.clang test.c
$ ./test.clang
Size a: 4
size b: 4
Address a: 0x7fff664573f8
...
1
The C standard as defined by Kernighan & Ritchie in their book "The C Programming Language" does not define how parameters are passed to functions, not does it define how local variables are stored which leaves it implementation defined.
The documentation for your compiler should tell you how parameters are passed because otherwise you can't write ...
Only top voted, non community-wiki answers of a minimum length are eligible
