Explain modulus operator. What are the restrictions of a modulus operator?
No Answer is Posted For this Question
Be the First to Post Answer
What is variable in c example?
Why we use break in c?
what is the structure?
what is use#in c
Why do we need volatile in c?
print the pattern 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 if n=5
b) 4 c) 6 d) 7 32. Any C program a) must contain at least one function b) need not contain ant function c) needs input data d) none of the above 33. Using goto inside for loop is equivalent to using a) continue b) break c) return d)none of the above 34. The program fragment int a=5, b=2; printf(“%d”,a+++++b); a) prints 7 b)prints 8 c) prints 9 d)none of the above 35. printf(“ab” , “cd”,”ef”); prints a) ab abcdef c) abcdef, followed by garbage value d) none of the above 36. Consider the following program segment. i=6720; j=4; while((i%j)==0) { i=i/j; j=j+1; } On termination j will have the value a) 4 b) 8 c) 9 d) 6720
If the size of int data type is two bytes, what is the range of signed int data type?
Explain what are compound statements?
difference between i++* and *++i
What is volatile
what is out put of the following code? #include class Base { Base() { cout<<"constructor base"; } ~Base() { cout<<"destructor base"; } } class Derived:public Base { Derived() { cout<<"constructor derived"; } ~Derived() { cout<<"destructor derived"; } } void main() { Base *var=new Derived(); delete var; }