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

logic for x=y^n

1 Answers   Delphi,


What do you mean by dynamic memory allocation in c? What functions are used?

0 Answers  


What is getch () for?

0 Answers  


what is the purpose of the code, and is there any problem with the code? int f( int n, int l, int r ) { return (n << l) >> r; }

2 Answers   Google,


control 50 devices which has 2 states on and off.using bitwise operator.plz answer it its urgent

1 Answers  


What is a constant?

0 Answers  


1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.

0 Answers  


What is main function in c?

0 Answers  


When should the const modifier be used?

0 Answers  


Can an array be an Ivalue?

0 Answers   EXL,


What are the back slash character constants or escape sequence charactersavailable in c?

0 Answers  


What is key word in c language?

4 Answers   ABC,


Categories