which of the function operator cannot be over loaded
a) <=
b)?:
c)==
d)*
Answers were Sorted based on User's Feedback
Answer / ruchi
Overloading is the concept of c++
In c++ ?: cant be overloaded
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / muthu bharathi
There are 5 operators which cannot be overloaded. They are:
.* - class member access operator
:: - scope resolution operator
. - dot operator
?:: - conditional operator
Sizeof() - operator
answer: b
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / anas
In 'C' there is no concept of overloading.
If we talks about C++ then TRINARY operator (? : ) cant be over loaded.
So, only the option (b) is correct.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / balu
i think b and d can't support overloading concept..
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / sahithya
overload concept will face in C++ i.e., if we declare a
same function with different times .
In c we dont have any overloadind concept .
ofcourse by seing the options we can say easily that
options will need of 3 or 2 operands compulsory.so
overloading does not occur
| Is This Answer Correct ? | 0 Yes | 5 No |
#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300
You have an int array with n elements and a structure with three int members. ie struct No { unsigned int no1; unsigned int no2; unsigned int no3; }; Point1.Lets say 1 byte in the array element is represented like this - 1st 3 bits from LSB is one number, next 2 bits are 2nd no and last 3 bits are 3rd no. Now write a function, struct No* ExtractNos(unsigned int *, int count) which extracts each byte from array and converts LSByte in the order mentioned in point1.and save it the structure no1, no2, no3. in the function struct No* ExtractNos(unsigned int *, int count), first parameter points to the base address of array and second parameter says the no of elements in the array. For example: if your array LSB is Hex F7 then result no1 = 7, no2 = 2, no3 = 7. In the same way convert all the elements from the array and save the result in array of structure.
Write a c program using for loop to print typical pattern if number of rows is entered by keyboard. ABCBA AB BA A A
How can I split up a string into whitespace-separated fields?
What is keyword in c?
define c
#include<stdio.h> int main() { int i=2; int j=++i + ++i + i++; printf("%d\n",i); printf("%d\n",j); }
#include<stdio.h> int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20
what is the hexidecimal number of 4100?
Write a program to compare two strings without using the strcmp() function
42 Answers Accenture, Arba Minch University,
6)What would be the output? main() { int u=1,v=3; pf("%d%d",u,v); funct1(&u,&v); pf("%d%d\n",u,v); } void funct1(int *pu, int *pv) { *pu=0; *pv=0; return; } a)1 3 1 3 b)1 3 1 1 c)1 3 0 0 d)1 1 1 1 e) 3 1 3 1
will u please send me the placement papers to my mail???????????????????