what is the value of 'i'?

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

Answers were Sorted based on User's Feedback



what is the value of 'i'? i=strlen("Blue")+strlen("People")/strle..

Answer / vignesh1988i

THIS will be replaced as

4+6/3-5

the output is 1

Is This Answer Correct ?    29 Yes 1 No

what is the value of 'i'? i=strlen("Blue")+strlen("People")/strle..

Answer / guest

1(one)

Is This Answer Correct ?    18 Yes 1 No

what is the value of 'i'? i=strlen("Blue")+strlen("People")/strle..

Answer / jaya prakash

One Only

Is This Answer Correct ?    13 Yes 1 No

what is the value of 'i'? i=strlen("Blue")+strlen("People")/strle..

Answer / aditya

i=strlen("Blue")+strlen("People")/strlen("Red")-strlen
("green")
it is evaluated as
strlen("People")/strlen("Red")
6-4 as 2 then
strlen("Blue")+2
4+2 as 6 then
6-strlen("green")
6-5 as 1

Is This Answer Correct ?    11 Yes 1 No

what is the value of 'i'? i=strlen("Blue")+strlen("People")/strle..

Answer / abc

i = strlen("Blue")+ strlen("People")/ strlen("Red")- strlen
("green")
it is evaluated as
strlen("People")/ strlen("Red")
6 / 3 as 2 then
strlen("Blue")+ 2
4 + 2 as 6 then
6 - strlen("green")
6 - 5 as 1

Is This Answer Correct ?    7 Yes 1 No

what is the value of 'i'? i=strlen("Blue")+strlen("People")/strle..

Answer / vimal

1

Is This Answer Correct ?    2 Yes 0 No

what is the value of 'i'? i=strlen("Blue")+strlen("People")/strle..

Answer / 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

More C Interview Questions

Is it acceptable to declare/define a variable in a c header?

0 Answers  


What does c mean in standard form?

0 Answers  


Explain how are portions of a program disabled in demo versions?

0 Answers  


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

0 Answers  


explain how do you use macro?

0 Answers  






How many levels of indirection in pointers can you have in a single declaration?

0 Answers   Agilent, ZS Associates,


What is Generic pointer? What is the purpose of Generic pointer? Where it is used?

3 Answers  


regarding the scope of the varibles;identify the incorrect statement: a.automatic variables are automatically initialised to 0 b.static variables are are automatically initialised to 0 c.the address of a register variable is not accessiable d.static variables cannot be initialised with any expression

1 Answers   TCS,


What is identifier in c?

0 Answers  


What is sizeof array?

0 Answers  


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

0 Answers  


What is the difference between a function and a method in c?

0 Answers  


Categories