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 ?    23 Yes 1 No

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

Answer / guest

1(one)

Is This Answer Correct ?    17 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 ?    5 Yes 1 No

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

Answer / vimal

1

Is This Answer Correct ?    1 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 ?    1 Yes 0 No

Post New Answer



More C Interview Questions

1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

0 Answers   KPIT,


wat s the meaning of (int *)p +4;

2 Answers  


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

0 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers  


du u know test pattern for robosoft? Plz share

1 Answers   Wipro, TATA, RoboSoft,






what is the main use of c where it can use the c

2 Answers   Infosys,


what will be the output of" printf("%d%d",scanf("%d% d",&a&b));"

4 Answers  


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

0 Answers   Lovely Professional University,


we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?

0 Answers  


why i join syntel?

23 Answers   Syntel, ABC, TCS,


how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?

0 Answers  


main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above

6 Answers  






Categories