Please list all the unary and binary operators in C.
Answers were Sorted based on User's Feedback
Answer / kuldeep singh
unary operatos are increment(++),decrement(--),minus(-)
,ampersand(&)negation(!),sizeof(),pointer referance
(*),one's complement(~).......
and binary operatos are +,*,%,/,<,>,=,AND(&&),OR
(||),assigment operator(==),inequility(>=,<=)
| Is This Answer Correct ? | 32 Yes | 3 No |
What is queue in c?
What are the two forms of #include directive?
#include<stdio.h> #include<conio.h> void main() {clrscr(); char another='y'; int num; for(;another=='y';) { printf("Enter a number"); scanf("%d",&num); printf("squre of %d is %d",num,num*num); printf("\nwant to enter another number y/n"); scanf("%c",&another); } getch(); } the above code runs only one time.on entering 'y' the screen disappeares.what can i do?
What is keyword in c?
main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?
writ a program to compare using strcmp VIVA and viva with its output.
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Explain logical errors? Compare with syntax errors.
Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV
c program to compute Income tax and Net Salary for its employees. The company offers tax relief of Kshs. 650 for single employees and Kshs. 1,100 for married employees. The relief will be deducted from the Gross salary, to give the taxable income. This will be computed at the following rates: [10mks] Taxable Income Rate (%) <5000 0 5000-19999 6 20000-36999 9 37000 and above 16
What is pass by reference in c?
Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986