Skip to main content

Posts

Showing posts with the label C programming

Hello World program in different different languages

C: #include<stdio.h> int main(){     printf("Hello World\n");     return 0; }   C++: #include<iostream> using namespace std; int main(){     cout<<"Hello World"<<endl;     return 0; }   Python: print("Hello World\n")   Node JS: console.log("Hello World");   Java Script: document.write("Hello World");   Objective C: #import <Foundation/Foundation.h> int main(int argc, const char* argv[]){      @autoreleasepool{          NSLog(@"Hello World");      }      0; } JAVA: class HelloWorld{     public static void main(String[] args){          System.out.println("Hello World");     } } BASH: echo "Hello World"

A technical preview of an Operating System

Operating System (OS): An Operating system consists of a set of programs which controls, co-ordinates and supervises the activities of the various components of a computer system. Its function is to link between the computer hardware and the user. An operating system is a software or a series of programmes, which performs various types of functions in order to manage and organize file so". Objectives:  There are lot of objectives of an operating system, actually it covers the birth of a perfect operating system. A user is just like a wanting animal they just want everything. But as a developer we are just tying to make our software more & more better as per user requests. These are some main objectives ------ To describe the basic organization of computer systems. To provide a grand tour of the major components of operating systems. Provide more convenient environment for users. Provide maximum utilized performance to users as per hardware existance. Computer Startup: When a c

Why you should start programming with C?

         You must have listened about C programming from many peoples, yes C is a mid level programming language It contains both language features HLL & LLL so it is called mid level language. So today we will talk about some history & uses of this C programming language.     C was developed at AT & T's Bell Laboratories of USA in 1972. It was designed & written by a man Dennis Ritchie & we also call him father modern programming languages. In the late seventies(70s) began to replace the more familiar languages of that time like PL/I, ALGOL, etc. No one pushed C.       Thus without any advertisements C reputation spread & its pool of users grew. Ritchie seems to have been rather surprised that so many programmers preferred C to older languages like FORTRAN or PL/I, or the newer once PASCAL & APL. But that's what happened. Possibly why C seems so popular is because it was reliable, simple & easy to use at that time. WHY YOU SHOULD LEARN C: C is