what is the value of 'i'?

i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the loops in c?

594


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

585


Explain zero based addressing.

610


How can you access memory located at a certain address?

667


What was noalias and what ever happened to it?

592






What is a pointer in c plus plus?

698


What are c identifiers?

629


What is union and structure in c?

618


What is structure of c program?

608


Explain what does the format %10.2 mean when included in a printf statement?

783


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3057


what are the 10 different models of writing an addition program in C language?

1441


What is size of union in c?

582


Is int a keyword in c?

557


in linking some of os executables are linking name some of them

1651