What is meant by
int fun const(int a, int b) {

....
...

}



What is meant by int fun const(int a, int b) { .... ... } ..

Answer / srv

In function 'fun' we have made variable a & b constant.
It means we are never going to alter the values of varibles
(a&b).if tried then error will be messaged.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More C Interview Questions

what are the stages of compilation

1 Answers   Bosch,


What is quick sort in c?

0 Answers  


write a program in c to print **** * * * * ****

1 Answers   TCS,


What is openmp in c?

0 Answers  


If we give two names then this displays the connection between the two people. It is nothing but flames game

1 Answers  






plssssss help !!....using array.. turbo c.. create a program that will accept number of words to be consored. .a word must not exceed 10 characters long .the text to be entered will be no longer than 200 characters .there will be no 10 words example: enter number of words to be censor: 5 enter words to censor: windows office microsoft bill gates enter text to censor: bill gates founded microsoft and makes office and windows sample output: <consored> <censored> founded <censored> and makes <censored> and <censored>

1 Answers  


any string of bits of length 'n' represents a unique non- negative integer between.............?

2 Answers  


main() { intx=2,y=6,z=6; x=y=z; printf(%d",x) }

5 Answers   Amazon, HCL, Thought Works,


how to create c progarm without void main()?

1 Answers   NIIT,


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]

0 Answers   Infosys,


Why static variable is used in c?

0 Answers  


we compile c program in 32 processor and 64 bit processor .exe file is created in both the processors. if we want to run .exe file in 64 bit processor which is created in 32 bit processor. is that .exe file is run or not if it is not run why?

4 Answers   HP, Wipro,


Categories