C Programming Languages & how its work
![]() |
| C Language |
C is a language that made for general-purpose, procedural computer programming language which supports structured programming languages, lexical variable scope, and recursion or recalling process, while a static type system prevents unintended operations. C was developed at Bell Labs by Dennis Ritchie between 1972 and 1973 to make utilities running on Unix. During 1980, it has become one of the most widely used programming languages.
C is an imperative procedural language that designed to be compiled using a relatively straightforward compiler to provide low-level language access to memory and language constructs that map efficiently to machine language instructions, all with minimal run-time support. Now, the C language is available on various platforms, from embedded micro controllers to supercomputers.
C programming languages; like -- Code blocks is used to run the code of c programming languages. Lets see a example of c programming language like --
Hello World Program in C
INPUT
#include <stdio.h>
int main()
{
printf("Hello World");
return 0;
}
OUTPUT
Hello World
C Program to check whether the given integer is positive or negative
INPUT
#include <stdio.h>
void main()
{
int num;
printf("Enter a number: \n");
scanf("%d", &num);
if (num > 0)
printf("%d is a positive number \n", num);
else if (num < 0)
printf("%d is a negative number \n", num);
else
printf("0 is neither positive nor negative");
return 0;
}
OUTPUT
Enter a number:
12
12 is a positive number

Very good...this increased my Knowledge of Learning programming
ReplyDelete