I want to know how computer understand that printf in c mean we want to print that? How computer understand that? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I want to know how computer understand that printf in c mean we want to print that? How computer understand that?

outofbox

12th Jul 2018, 3:02 PM
Programmer Raja
Programmer Raja - avatar
6 Answers
+ 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☺️☺️.
12th Jul 2018, 3:19 PM
Meet Mehta
Meet Mehta - avatar
+ 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
12th Jul 2018, 3:22 PM
Blake Quake
Blake Quake - avatar
+ 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.
12th Jul 2018, 5:25 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
+ 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
13th Jul 2018, 4:32 AM
Programmer Raja
Programmer Raja - avatar
+ 1
It would be very lengthy to explain it here. So type => How Computers Works and you would get some useful resources.
13th Jul 2018, 5:19 AM
Meet Mehta
Meet Mehta - avatar
0
meet metha thanks
13th Jul 2018, 5:30 AM
Programmer Raja
Programmer Raja - avatar