convert 0.9375 to binary
Answers were Sorted based on User's Feedback
Answer / uthiravel
0.9375*2=1.875=>1
0.875*2 =1.75 =>1
0.75*2 =1.5 =>1
0.5*2 =1.0 =>1
0.9375=0.1111(Top to Bottom)
| Is This Answer Correct ? | 76 Yes | 10 No |
#include <stdio.h> int main ( int argc, char* argv [ ] ) { int value1 = 10; int value2 = 5; printf ( "\n The sum is :%d", value1 | value2 ); } This is the answer asked by some one to add two numbers with out using arithmetic operator?Yes this answer is write it given out put as 15.But how????? what is need of following line? int main ( int argc, char* argv [ ] ) how it work?what is the meaning for this line? please explain me.Advance thanks
What is the difference between printf and scanf )?
What is the purpose of type declarations?
What is string concatenation in c?
How can I swap two values without using a temporary?
What is pointers in c?
what is a NULL pointer?
Why doesnt long int work?
Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <stdlib.h> int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }
if function is declared as static in one source file, if I would like to use the same function in some other source file...is it possible....how ?
What is declaration and definition in c?
What are the types of type qualifiers in c?