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

print the following using nested for loop. 5 4 3 2 1 1 2 3 4 3 2 1 1 2 1 2 1 1 2 3 4 3 2 1 1 2 3 4 5

7 Answers   IBM,


What is an arrays?

0 Answers  


Where we use clrscr in c?

0 Answers  


write a program of bubble sort using pointer?

3 Answers   TCS,


Array is an lvalue or not?

0 Answers  






What does != Mean in c?

0 Answers  


Define a structure to store roll no, name and marks of a student. Using the structure of above write a ‘C’ program to create a file “student.dat”. There must be one record for every student in the file. Accept the data from the user.

0 Answers  


identify the in correct expression a.a=b=3=4; b.a=b=c=d=0; float a=int b=3.5; d.int a; float b; a=b=3.5;

8 Answers   TCS,


WRITE A C PROGRAM FOR PRINT "RHOMBUS" STRUCTURE . Example: Enter the numbers :3 * * * * * * * *

3 Answers   Infosys, TCS,


can we access one file to one directory?

1 Answers  


what about "char *(*(*a[])())();"

3 Answers   Oracle,


What oops means?

0 Answers  


Categories