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 |
#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 are the different types of data structures in c?
What is a pointer and how it is initialized?
Is null equal to 0 in sql?
What is || operator and how does it function in a program?
main is a predefined or user define function if user defined why? if predefined whay?
What are the types of operators in c?
what is pointer?
13 Answers HCL, TCS,
Can we assign integer value to char in c?
What is c basic?
What are nested functions in c?
What is #include conio h?