-
Read Line Program
Write a program that will read a line and delete from it all occurences of the word 'the'
-
Read Specified Number of Elements
What function will read a specified number of elements from a file?
-
Reverse String Stored in Pointer Array
Write a C program to reverse the strings stored in the following array of pointers to strings char *s[]={"To err is human..", "But to really mess things up", "One needs to learn C!!" };
-
Tricky C Program
Write a C program to find a peculiar two digit number which is three times the sum of its digits.
-
All Cominations of a Word
Write a C program for all possible combinations of letters in a word?
-
Error Code
Will this code cause an error during runtime, error during compilation, or no error? 1.) char str[5]; strcpy (str, "hello"); 2.) char *str; strcpy (str, "hello");
-
-
-
How can you determine the maximum value that a numeric variable can hold?
For integral types, on a machine that uses two’s complement arithmetic (which is just about any machine you’re likely to use), a signed type can hold numbers from –2(number of bits – 1) to +2(number of bits – 1) – 1. An unsigned type can hold values from 0 to +2(number of bits) – 1. For instance, a 16-bit signed integer can hold numbers from –2^15 (–32768) to +2^15 – 1 (32767).