Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6601749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:47:37+00:00 2026-05-25T18:47:37+00:00

I was thinking about system calls and code that we write! Lets say I

  • 0

I was thinking about system calls and code that we write! Lets say I have a program like below

#include<stdio.h>
int main()
{
   int a=0,b=2,c;
   c=a+b;
   printf("The value of c is %d", c);
   return 0;
}

Lets take the case of c = a+b; if it was c++ compiler, then i beleive there would be a call to operator+() function. The compiler ofcourse might optimize it by replacing it with the actual code that performs addition rather than a function call within an assembly code.

And printf will have to use system call in order to write it to different hardware buffers. So i beleive most of the api’s provided by the language would use system call to accomplish the function.. I am not sure if my understanding is correct. Please do correct me if I am wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:47:38+00:00Added an answer on May 25, 2026 at 6:47 pm

    No, not at all. I’m unsure if you have your definition of a system call correct. Stealing a definition from Wikipedia:

    In computing, a system call is how a program requests a service from an operating system’s kernel.

    This means that the kinds of operations that result in system calls are I/O, timing, etc — not math, assignments, (most) memory assignments, …

    Even malloc() is usually implemented so you don’t always need a system call. In general: only actions that affect or interact with the program’s surrounding enviroment require a system call. Registers, program variables, etc. do not count as part of the surrounding environment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm thinking about building a login system for Ruby on Rails, much like this
I'm thinking about a good solution for implementing a sign up/login system that works
Thinking about avoiding code replication, I got a question that catches me every time
I was thinking about how the Linux kernel implements system calls and I was
I am currently thinking about how to design a multithreading system in Java that
Thinking about a Windows-hosted build process that will periodically drop files to disk to
Without thinking about it at all I just want to say I should allow
I'm thinking about a system in which I allow users to create Javascript-empowered widgets
The closest example I can think of is iTunes. I'm thinking about a system
I'm trying to build my own prediction market, and I'm thinking about algorithms. That

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.