Home / MCQ Bank / Computer
Computer Standard Library Functions

What will be the output of the following C code? Maximum value of int = 1000 Maximum value of float = 5000 Maximum value of short int = 327 Minimum value of short int = -328 #include<stdio.h> #include<limits.h> #include<float.h> main() { short int d; d=INT_MAX + FLT_MAX; printf("%d",d); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • 327

Related Computer Questions

While creating relationship, when you drag a field of a field to drop into another table the mouse pointer changes into Which of the following real time examples is based on insertion sort? The strictest transaction isolation level provided by SQL Server is called: Which of the following is NOT a valid assignment operator in C#? What will be the output of the following Java program? import java.net.*; class networking { public static void main(String[] args) throws UnknownHostException { InetAddress obj1 = InetAddress.getByName("example.com"); InetAddress obj2 = InetAddress.getByName("example.com"); boolean x = obj1.equals(obj2); System.out.print(x); } }