0
I want to know how computer understand that printf in c mean we want to print that? How computer understand that?
outofbox
6 odpowiedzi
+ 2
Computer only understand 0 and 1.
Its difficult for human to write program in 0 and 1 and also its not portable(platform dependent) means you have to write same program multiple times for multiple computers.
So there are software such as COMPILER and others which converts our C program into 0 and 1 so computer can understand it.
These languages are called High Level Languages because they are understandable by humans.
Also they are platform independent.
Hope this helps☺️☺️.
+ 2
The provider of the standard library wrote the code to print something inside the printf function. The code is different for each operating system. So simply put, it has the code inside it to tell the operating system what to do. The code usually consists of calling a function provided by the OS itself, which would be machine code. Hope it helps
+ 1
in Unix like os printf internally user write system call and it will use file descriptor of STDOUT to print the message on console.
+ 1
meet metha i want to know how computer understand 1and 0 if i want to know how computer understand 1and 0 what i want study in my future
+ 1
It would be very lengthy to explain it here.
So type => How Computers Works and you would get some useful resources.
0
meet metha thanks