0% found this document useful (0 votes)
13 views

Indexc

The document outlines 14 programming problems across two sections. The problems involve tasks like determining if a number is even or odd, converting between hexadecimal and decimal, manipulating numbers and strings, performing file operations, and counting elements in C programs. Recursive functions and macros are also mentioned. The page numbers provided would allow someone to find more details on the individual problems in another document or textbook.

Uploaded by

itsmedayal
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Indexc

The document outlines 14 programming problems across two sections. The problems involve tasks like determining if a number is even or odd, converting between hexadecimal and decimal, manipulating numbers and strings, performing file operations, and counting elements in C programs. Recursive functions and macros are also mentioned. The page numbers provided would allow someone to find more details on the individual problems in another document or textbook.

Uploaded by

itsmedayal
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Section-A

Programs Write a program to print whether the number entered is even or odd use conditional operator. Page No.

( 01) (02-04) (05) (06) (07-09) (10) (11) (12) (13) (14-15)

Write a program to convert hexadecimal to decimal number. Write a program to display list of c program files directories. Write a program to ensure that the difference between any two number and its reverse is always a multiply of nine. Write a program to display the number of days in calendar format of an entered month of current year. Write a program to display the numbers in increasing and decreasing order using infinite loop. Write a program to accept a number and find the sum of its individual digits repeatedly till the result is a single digit. Write a program to enter integer number and find the largest and smallest digit of the number. Write a program to read three digit +ve integer no. n and generate possible permutations of no. using their digits.
Accept a text up to 50 words and perform following action: a. Count total vowels, consonants, spaces, sentences and words with spaces. b. program should erase more than one space between two successive word. Write a program to enter name of the cities and display all the entered name

alphabetically. Write a program to enter some text and display the text in reverse order (E.g. I am Happy as Happy am I).

(16) (17)

Section-B
Programs Write a program to calculate the result of the following with recursive calls of functions: X=1!+2!+3!+4!++n!
Write a program to use macro as an array and pointer. Write a program to display the attribute of a file using DOS interrupt. Write a program to delete a file using DOS interrupt. Create user-defined data type equivalent to int. Declare three variables of its type.

Page No.

(18)
(19)

(20-21) (22) (23) (24)

perform arithmetic operation using these variables. Write A Program to reboot the system using dos interrupt.

Write a program to read c program file and count the following in the complete program A. Total no. of statement. B. Total no of included file. C. Total no. of brackets. (25-26) Write a program to display c program files in current directory. (27) The user should select one of the files. Convert the file contents in capital and display the same on the screen. Write a program to delete the given file from the disk. (28)

You might also like