Knowee
Questions
Features
Study Tools

What is the value of integer variable b, if we find programming statement like b=printf(“ES-CS201”); ans. garbage value 7 8 6

Question

What is the value of integer variable b, if we find programming statement like b=printf(“ES-CS201”);

ans. garbage value

7

8

6

🧐 Not the exact question you are looking for?Go ask a question

Solution

The value of the integer variable b will be the number of characters printed by the printf function. In this case, the string "ES-CS201" has 8 characters, so the value of b will be 8.

Similar Questions

What is the output of this statement printf(“%d”, (a++)); ?Answer areaA. The value of (a + 1)B. The current value of aC. Error messageD. Garbage

What will be the output of the following code snippet?1234567#include <stdio.h>int main() { int a = 5, b = 10; int result = a == b ? a + b : a - b; printf("%d", result); return 0;}

In the below code -For what value of n does the program print 21 ?

What is The Output of the following    program?  #include<stdio.h>void main(){int  i = printf("00");  int i =printf("00"); printf("%d",i);}000002Garbage value

What will be the output of the following program?#include<stdio.h> int X=40; int main() {     int X=20;     printf("%d", X);     return 0; }Select one:400Error20

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.