This C program has a integer variable and 2 printf functions. Check the source code below and guess the output.
Whats the output of this C Program?
#include < stdio.h > int main() { int a; a = printf("IBM"); printf("\n%d", a); return 0; }
Output 1:
IBM
3
Output 2:
Microsoft
9
Output 3:
Apple
5
Output 4:
Oracle
6
C Programming Interview / Viva Q&A: 2 (printf)
[youtube https://www.youtube.com/watch?v=e9gZ9Vk8lf4]
YouTube Link: https://www.youtube.com/watch?v=e9gZ9Vk8lf4 [Watch the Video In Full Screen.]
Important: printf() function returns the number of characters printed by it.
For list of all c programming interviews / viva question and answers visit: C Programming Interview / Viva Q&A List
For full C programming language free video tutorial list visit:C Programming: Beginner To Advance To Expert