what is unsigened char
and what is the difference from char
Answers were Sorted based on User's Feedback
char langth is -128 to 127
and unsigned char have no neathive value so langth is
increase 256 .
this is the main differece.
manish soni TBC jaipur
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / guest
insigned character occupies the -127 to +128 bits .
char it occupies only one byte
| Is This Answer Correct ? | 0 Yes | 1 No |
What is the heap?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What is bubble sort technique in c?
How will you allocate memory to a double pointer ?
Is boolean a datatype in c?
Write a code to generate a series where the next element is the sum of last k terms.
Blade logic interview question. 1st round is a written tests with 15 multiple questions from c and c++. All are simple basic question. Like int main () { Int i=65; Return printf(ā%cā, i); } 2nd and 3rd round is technical interview. The position for which I was interview was core UNIX and c. Yes it is for system programming. The company has product name blade server. For their server they are creating their own command for their purpose. Example cd command. We can implement it in a c program by using the chdir() function. So the question asks related to PID, fork, pipe, shared memory, signal. Write a program in c which will act as cp command.
1 Answers BladeLogic, Infosys,
using only #include <stdio.h> and #include <stdlib.h> Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.
write a program to print the all 4digits numbers & whose squares must me even numbers?
why do some people write if(0 == x) instead of if(x == 0)?
25. It takes five minutes to pass a rumour from one person to two other persons. The tree of rumour continues. Find how many minutes does it take spread the rumour to 768 persons. ?
11 Answers CTS, TCS,
i=20,k=0; for(j=1;j<i;j=1+4*(i/j)) { k+=j<10?4:3; } printf("%d", k);