please tell me the logic for this C program :
INPUT (string):ABCD
OUTPUT :BCDA
CDAB
DABC
Answers were Sorted based on User's Feedback
True or false: If you continuously increment a variable, it will become negative? 1) True 2) False 3) It depends on the variable type
Why do we use int main instead of void main in c?
How will you write a code for accessing the length of an array without assigning it to another variable?
sir, i cannot find the way how to write aprogram by using array on queue
Write a program that an operator and two operands read from input operand operator on the implementation and results display.
void main() { int a=1; printf("%d %d %d",a,++a,a++); } the output is supposed to be 1 2 2....but it is 3 3 1 this is due to calling conventions of C. if anyone can explain me how it happens?
Explain this code. #include <stdio.h> void f1(int *k) { *k = *k + 10; } main ( ){ int i; i = 0; printf (" The value of i before call %d \n", i); f1 (&i); printf (" The value of i after call %d \n", i); }
main() { float f1=10.5; double db1=10.5 if(f1==db1) printf("a"); else printf("b") }
write a program to convert a expression in polish notation (postfix) to inline (normal)
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
The variables are int sum=10,SuM=20; these are same or different?
What are type modifiers in c?