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

When is an interface "good"?

1 Answers  


regarding pointers concept

0 Answers  


How can I call a function with an argument list built up at run time?

0 Answers  


Why is c faster?

0 Answers  


using for loop sum 2 number of any 4 digit number in c language

0 Answers  






Does sprintf put null character?

0 Answers  


why program counter is 16 bit?

3 Answers  


what is compiler

6 Answers  


How to set file pointer to beginning c?

0 Answers  


What are the 5 data types?

0 Answers  


Explain what is meant by 'bit masking'?

0 Answers  


Explain the difference between malloc() and calloc() in c?

0 Answers  


Categories