Awesome q2a theme
0 votes
Can someone explain to me how printf(“%d”,’A’);

would work internally? I mean how is the integer value of A given?
in Programming by (69 points) | 12 views
In order to print any value to the console, printf uses a system call (a method provided by the kernel of the operating system to obtain system specific functionality). The use system call make the transition from user mode to kernel mode of the operating system. Here operating system communicates with the hardware and gives the instructions to the drivers communicating with visual display. Hence any integer value or anything gets printed on the screen

Please log in or register to answer this question.

Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Oct 2019

    410 Points

  2. Satbir

    317 Points

  3. Rudr Pawan

    163 Points

  4. srestha

    136 Points

  5. Mk Utkarsh

    127 Points

  6. Debapaul

    94 Points

  7. chandrikabhuyan8

    83 Points

  8. Shaik Masthan

    79 Points

  9. Verma Ashish

    77 Points

  10. !KARAN

    74 Points

Monthly Top User and those within 60% of his/her points will get a share of monthly revenue of GO subject to a minimum payout of Rs. 500. Current monthly budget for Top Users is Rs. 450.
1,680 questions
1,089 answers
89,591 users