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

Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

0 Answers  


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?

0 Answers  


to convert a string without using decrement operater and string functions

1 Answers  


what is pointer?

13 Answers   HCL, TCS,


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

0 Answers   HCL,






‎How to define structures? · ‎

0 Answers  


What is a good data structure to use for storing lines of text?

0 Answers  


please send me papers for Dy. manager IT , PNB. it would be a great help for me.

0 Answers  


There seem to be a few missing operators ..

0 Answers  


What is identifiers in c with examples?

0 Answers  


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

0 Answers   Agilent, ZS Associates,


how should functions be apportioned among source files?

0 Answers  


Categories