πŸ“Š C Programming
Q. What will be output for the following code?
Code:
#include<stdio.h> 
int main() 
{ 
    int x = 10;    
    char y = 'a'; 
    x = x + y; 
     
    float z = x + 1.0; 
  
    printf(""x = %d, z = %f"", x, z); 
    return 0; 
} 
  • (A) x = 108, z = 108.000000
  • (B) x = 107, z = 108.000000
  • (C) x = 107, z = 108.0000
  • (D) x = 107, z = 108.00
πŸ’¬ Discuss
βœ… Correct Answer: (B) x = 107, z = 108.000000

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
191
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
82%
Success Rate