write a c program to print the next of a particular no
without using the arithmetic operator or looping statements?
Answer / sumanta mahapatra
we can do dis using increment operator....
main()
{
int x,y;
x=5;
y=++x;
printf("%d",y);
}
| Is This Answer Correct ? | 7 Yes | 3 No |
how to set Nth bit of variable by using MACRO
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What are conditional operators in C?
What is the difference between ++a and a++?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
what is Structural oriented language? give some example of this language.....?
what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); }
main() { FILE *fs; char c[10]; fs = fopen(“source.txt”, ”r”); /* source.txt exists and contains “Vector Institute” */ fseek(fs,0,SEEK_END); fseek(fs,-3L,SEEK_CUR); fgets(c,5,fs); puts(c); }
What are variables and it what way is it different from constants?
how to display 2-D array elements in spiral
Two's compliment of -5
How can I return multiple values from a function?