what is the value of 'i'?
i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
Answers were Sorted based on User's Feedback
Answer / vignesh1988i
THIS will be replaced as
4+6/3-5
the output is 1
| Is This Answer Correct ? | 29 Yes | 1 No |
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 |
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 |
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 |
What's wrong with "char *p; *p = malloc(10);"?
What is volatile variable in c with example?
Why functions are used in c?
Given an array of numbers, except for one number all the others occur twice. Give an algorithm to find that number which occurs only once in the array.
What is omp_num_threads?
consider the following program sigment int n,sum=1; switch(n) { case 2:sum=sum+2; case 3:sum*=2; break; default:sum=0;} if n=2, what is the value of sum a.0 b.6 c.3 d.none
What is indirection?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Is it possible to have a function as a parameter in another function?
Why c is a mother language?
What are the advantage of c language?
What is a const pointer in c?