More Examples on printf and scanf Functions || Lesson 57.2 || C Programming || Learning Monkey ||

preview_player
Показать описание
More Examples of printf and scanf Functions

In this class, we will understand More Examples of printf and scanf functions.

We have already discussed the concepts of pre-defined functions, functions, and input-output functions.

More Examples of printf and scanf Functions
Example 1

In the above example, the innermost scanf function will get executed first and return two as the output.

The return value of the scanf is the input for the printf and outputs 2.
Example 2

In the above example, the innermost printf function will get executed first and return the number of characters 16 as the output.

The outer printf will print 16 as the output.
Example 3

In the above example, the innermost scanf returns one as it returns the number of scanned elements.

The returned value is given as the input to the printf in which scanf is embedded.

The inner printf will return 19 as it has 19 characters in the literal string.

The outer printf will print the output as “num bytes printed = 19”.

#learningmonkey #cprogrammingforbeginners #placements #gatecse #cprogramming #cprogramminglanguage

Link for playlists:

Рекомендации по теме
Комментарии
Автор

Thank you for your efforts. I appreciate it from the bottom of my heart. I have subscribed to your channel and liked all your videos watched so far. Did not know where to comment so i have randomly chosen this video for the comment.🙏.You are doing great just keep it up. You have an amazing depth to the subject. Again I thank You.

dhavalvyas
visit shbcf.ru