logic for x=y^n
Answer / abhishek
c=a^b
here ^ is an exclusive or operator whose equation is
(~(a)b)+(~(b)a)
truth table
a b c
1 1 0
1 0 1
0 1 1
0 0 0
| Is This Answer Correct ? | 3 Yes | 0 No |
What is meant by int main ()?
What is the sizeof () operator?
What is c definition?
What are the three constants used in c?
What is the output of the following progarm? #include<stdio.h> main( ) { int x,y=10; x=4; y=fact(x); printf(ā%d\nā,y); } unsigned int fact(int x) { return(x*fact(x-1)); } A. 24 B. 10 C. 4 D. none
What is the acronym for ansi?
What is the output of following program ? int main() { int x = 5; printf("%d %d %d\n", x, x << 2, x >> 2); }
What is %lu in c?
char S; char S[6]= " HELLO"; printf("%s ",S[6]); output of the above program ? (0, ASCII 0, I,unpredictable)
How many data structures are there in c?
how to impliment 2 or more stacks in a single dimensional array ?
regarding the scope of the varibles;identify the incorrect statement: a.automatic variables are automatically initialised to 0 b.static variables are are automatically initialised to 0 c.the address of a register variable is not accessiable d.static variables cannot be initialised with any expression