what is the value of 'i'?


Answers were Sorted based on User's Feedback

Answer / vignesh1988i

THIS will be replaced as


the output is 1

Is This Answer Correct ?    21 Yes 1 No

Answer / guest


Is This Answer Correct ?    17 Yes 1 No

Answer / jaya prakash

One Only

Is This Answer Correct ?    13 Yes 1 No

Answer / aditya

it is evaluated as
6-4 as 2 then
4+2 as 6 then
6-5 as 1

Is This Answer Correct ?    11 Yes 1 No

Answer / abc

i = strlen("Blue")+ strlen("People")/ strlen("Red")- strlen
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 ?    5 Yes 1 No

Answer / vimal


Is This Answer Correct ?    1 Yes 0 No

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 ?    0 Yes 0 No

Post New Answer

More C Interview Questions

int a=20; int b=30; int c=40; printf("%d%d%d"); what will be the output?

5 Answers   CMC,

what is void pointer?

2 Answers  

write a programming in c to find the sum of all elements in an array through function.

0 Answers  

what are you see during placement time in the student.

0 Answers   TCS, Goldman Sachs, Tech Solutions,

why integer range between -327680to+32767

2 Answers  

What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

0 Answers   IBM,

A stack can be implemented only using array?if not what is used?

3 Answers   InterGlobal,

write a c program in such a way that if we enter the today date the output should be next day's date.

0 Answers  

Write a simple program to find the size of different basic data types in C.

3 Answers  

Is reference used in C?

1 Answers  

write a C code to reverse a string using a recursive function, without swapping or using an extra memory.

9 Answers   TCS, Wipro, Motorola,

Can u return two values using return keyword? If yes, how? If no, why?

7 Answers