Tag Archives: functions


Write a program that does not use the inbuilt string functions to perform the following: 10m Jun2006

Write a program that does not use the inbuilt string functions to perform the following: 10m Jun2006 (i) To compare two strings Screen Shots: (ii) To copy a string #include<stdio.h> void main() {  void str_copy(char*,char*);  char Str1[50],Str2[50];  int val;  clrscr();  printf(“\nENTER FIRST STRING TO COMPARE : “);  scanf(“%s”,&Str1);  str_copy(Str2,Str1);  printf(“\nSTR1 IS : %s”,Str1);  printf(“\nSTR2 IS… Read More »

Explain the meaning of each of the following functions prototypes and mention the return data type of each of them: 10m Jun2006

Explain the meaning of each of the following functions prototypes and mention the return data type of each of them: 10m Jun2006   (i) double f(double a, int b);  -   This function has two arguments, first of double data type and second of int data type. The return data type is double.   (ii) void… Read More »

A C program to covert decimal to binary, octal & Hexadecimal – IGNOU MCA Assignment 2013

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-011 Course Title : Problem Solving and Programming Assignment Number : MCA(1)/011/Assign/13 Assignment 2013   A C program that takes a decimal number and converts it into binary, octal and hexadecimal equivalents. Your program should have functions for each type of conversion. These functions should implement algorithms to… Read More »