An extremely powerful computer language on which the foundations of most other mid-level and RAD languages are based. Although it is not object-oriented like C++ and Java, it compiles into tighter code that occupies less space. It is used most frequently for applications designed to run in tight conditions, such as on a computer with a slow CPU and/or a small amount of memory. It is also closer to assembly language than it is to mid-level languages (on the spectrum of computer languages, C is toward the low end of the mid-level languages), making it more difficult to fully master than most languages.
//a more interesting Hello World program
#include <stdio.h>
typedef struct {
int x;
char c50;
void (*func)(char*);
} MY_HELLO_STRUCTURE;
MY_HELLO_STRUCTURE ms;
void draw(char* s) {
printf(s);
}
void main(void) {
ms.x++;
sprintf(ms.c,"Hello World (for the ")
switch (ms.x%10) {
case 1:
sprintf(ms.c+21,"%dst time",ms.x);
break;
case 2:
sprintf(ms.c+21,"%dnd time",ms.x);
break;
case 3:
sprintf(ms.c+21,"%drd time",ms.x);
break;
default:
sprintf(ms.c+21,"%dth time",ms.x);
break;
}
ms.func=draw;
(*ms.func)(ms.c);
return;
}
#include <stdio.h>
typedef struct {
int x;
char c50;
void (*func)(char*);
} MY_HELLO_STRUCTURE;
MY_HELLO_STRUCTURE ms;
void draw(char* s) {
printf(s);
}
void main(void) {
ms.x++;
sprintf(ms.c,"Hello World (for the ")
switch (ms.x%10) {
case 1:
sprintf(ms.c+21,"%dst time",ms.x);
break;
case 2:
sprintf(ms.c+21,"%dnd time",ms.x);
break;
case 3:
sprintf(ms.c+21,"%drd time",ms.x);
break;
default:
sprintf(ms.c+21,"%dth time",ms.x);
break;
}
ms.func=draw;
(*ms.func)(ms.c);
return;
}
by C programmer April 19, 2005
Get the C mug.by lkpjh August 13, 2004
Get the C mug.Denotes the speed of light.
by tradesman April 1, 2003
Get the c mug.Slang for Coors Light beer. Works on two levls: 1.)Coors minus the calories and also 2.) Coors Light is of a low but passing quality (as in it gets a grade of C-)
by sleepinggrass January 23, 2005
Get the C- mug.another day another heartbreak. this is how it is for us. we live, we hurt, we cry, and no one cares. we get subtweeted, what’s left? are we here just to be tormented? is that all? and for what. we get nothing. all we get is pain. /c
by Idk what things mean so I'm he June 13, 2021
Get the /c mug.by anoosha June 20, 2007
Get the c(: mug.Baldrick: I've done "C".
Blackadder: Right. Let's have it, then.
Baldrick: Right. "Big blue wobbly thing that mermaids live in."
Blackadder: Right. Let's have it, then.
Baldrick: Right. "Big blue wobbly thing that mermaids live in."
by RDNSK May 5, 2011
Get the c mug.