M
Q. What will be the result of the following code snippet?
#include <stdio.h> void solve() { char ch[10] = "abcdefghij"; int ans = 0; for(int i = 0; i < 10; i++) { ans += (ch[i] - 'a'); } printf("%d", ans); } int main() { solve(); return 0; }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. The precedence of member operator is _________ than all arithmatic and relational operator
Q. Which of the following returns the square root of given number?
Q. What are the data type of variables that can be returned by a C Function.?
Q. Which character always ends a statement?
Q. The data structure used to implement recursive function calls _____________.
Q. Which of the following are valid decision-making statements in C?
Q. What will be the output of the following program ?
Q. Where in C the order of precedence of operators do not exist?
Q. Which of the following is correct Associativity for == operator?
Discusssion
Login to discuss.