consider the following C code
main()
{
int i=3,x;
while(i>0)
{
x=func(i);
i--;
}
int func(int n)
{
static sum=0;
sum=sum+n;
return(sum);
}
the final value of x is
Answer Posted / yogendra jain
6
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
Describe the order of precedence with regards to operators in C.
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What is scanf () in c?
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
Why do we use main function?
Why is sizeof () an operator and not a function?
Why do some versions of toupper act strangely if given an upper-case letter?
What is calloc in c?
Why is c called "mother" language?
What is break statement?
Why do we use namespace feature?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What does %d do in c?
application attempts to perform an operation?