What would be the output of the following code


Asked by admin @ in Computer Science viewed by 360 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 420 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 360 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 435 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 295 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 340 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 382 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 396 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 330 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 382 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 409 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 404 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 307 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 323 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 380 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 19031 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 15817 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 10977 persons



Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 10408 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 8723 persons


Which of the following occupies more memory in c

Asked by admin @ in Computer Science viewed by 8145 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 7845 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 6492 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 5796 persons



Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 5697 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 5479 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4986 persons



Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4976 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 4690 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 4492 persons