What would be the output of the following code


Asked by admin @ in Computer Science viewed by 355 People


What would be the output of the following code.explain..a=2+5/8

Answered by admin @



Answer:

if a can be float then the output can be 2.625

if a is declared as integer then output is 2.

Based on datatype value will differ.

Explanation:


Similar Questions

What will be the output of following code

Asked by admin @ in Computer Science viewed by 418 persons

What will be the output of the following code? print( (3 < 1) and (4/0 > 1))1.False2.True3.Run-time error4.None of the above​

What is the output of the following code

Asked by admin @ in Computer Science viewed by 356 persons

What is the output of the following code? dict 1={}dict 1["x"]=[5]print (dict 1["x"][5])a) 5b) [5]c) 0d) The code generates an error​

What will be output of the following c code

Asked by admin @ in Computer Science viewed by 360 persons

Q.16:What will be the output of the following C code? #include void main() { int x = 4, y, z; y =- -X, Z = X--; printf("%d%d%d", x, y, z); …

What is the output of the following code snippet

Asked by admin @ in Computer Science viewed by 427 persons

6. What is the output of the following code snippet? a=5 for i in range(10) a=a+1  a. 15  b. 5  c. 0  d. Error   7. What happens when the following …

What will be the output of the following code

Asked by admin @ in Computer Science viewed by 290 persons

What will be the output of the following code? print( (3 < 1) and (4/0 > 1))1.False2.True3.Run-time error4.None of the above​

What would be the output of the following program

Asked by admin @ in Computer Science viewed by 336 persons

What would be the output of the following program? main(){int i=4;switch(i).{default:printf("\n A mouse is an elephant built by the Japanese");case 1:printf(" Breeding …

Write the html code to generate the following output

Asked by admin @ in Computer Science viewed by 373 persons

Write html code to generate the following output​

Which of the following characters would be considered an archetype

Asked by admin @ in English viewed by 389 persons

Which of the following characters would be considered an archetype? A. Troublesome dog B. Unhappy parent C. Shy little girl D. Funny sidekick I know its not C.

What does the following piece of code do

Asked by admin @ in Computer Science viewed by 326 persons

What does the following piece of code do? 1 public Object function()2 {3 if(isEmpty)4 return -999;5 else6 {7Object high;8high = q[front); …

Which of the following html code is valid

Asked by admin @ in Computer Science viewed by 381 persons

Which of the following HTML code is valid OR OR OR

Which of the following is an output device

Asked by admin @ in Computer Science viewed by 408 persons

Which of the following is an output device​

How would you convert the following compounds into benzene

Asked by admin @ in Chemistry viewed by 397 persons

Question 13.20 How would you convert the following compounds into benzene? (i) Ethyne (ii) Ethene (iii) Hexane Class XI Hydrocarbons Page 397

What is the output of the following 4 5

Asked by admin @ in Computer Science viewed by 302 persons

What is the output of the following : 4//5 What is the output of the following : 4//5 ? 1.12.0.83.04.8​

What will be the output of the following pseudocode

Asked by admin @ in Computer Science viewed by 317 persons

What would be the output of the following pseudocode? 1) Integer i, j, k 2) Set k = 6 3) For (each i from 1 to 1) 4) For (each …

What will be the output of below python code

Asked by admin @ in Computer Science viewed by 378 persons

What will be the output of below Python code? str1="Information" print(str1[2:8]) formatformatioormaormat​

Most viewed questions in Computer Science


A programmer mistakenly writes gor instead of for

Asked by admin @ in Computer Science viewed by 19019 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 15806 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 10970 persons



Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 10401 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 8721 persons


Which of the following occupies more memory in c

Asked by admin @ in Computer Science viewed by 8135 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 7841 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 6486 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 5788 persons



Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 5691 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 5474 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4980 persons



Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4970 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 4682 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 4487 persons