what is the value of 'i'?

i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")

Answer Posted / mahesh

Strlen(BLUE)=4, strlen(people)=6, strlen(red)=3, strlen(green)= 5 so by BODMAS method we can slove this

4 + 6 / 3 - 5 = 4+2-5= 1
1st divison, 2nd addition, 3 rd subraction

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How old is c programming language?

563


Why should I use standard library functions instead of writing my own?

663


what will be maximum number of comparisons when number of elements are given?

1398


Explain the difference between call by value and call by reference in c language?

637


Is javascript based on c?

585






What are keywords c?

592


What are control structures? What are the different types?

585


Is swift based on c?

624


What is difference between Structure and Unions?

630


what is event driven software and what is procedural driven software?

2003


How can I determine whether a machines byte order is big-endian or little-endian?

607


Do pointers need to be initialized?

552


show how link list can be used to repersent the following polynomial i) 5x+2

1666


Write a program to print all permutations of a given string.

631


Explain output of printf("Hello World"-'A'+'B'); ?

967