Tag: C Programming Assignment

  • Computer assignment – String Manipulation Program With And Without Library Function

    Que: Write A Menu driven C String Manipulation Program With And Without Library Function ?? #include // Library Function which can be used for the String Mnpltn #include #include void main() { int ch; clrscr(); printf("MAIN MENU"); // Main Menu printf(" nn1. String Manipulation With Library Functionnn2. String Manipulation Without Library Functionnn Enter the Choice : "); scanf("%d",&ch;); if(ch==1) { char a[20]; //With Library Function int i; clrscr(); gets(a); i=0; while(a[i]!=’’) i++; //counts no of chars till encountering null char printf(sring length=%d,i); } else if(ch==2) { // Without Library Function int length; char cstring[20]; printf("nnEnter the Charcter :") gets(cstring); for (length = 0; cString[length]; ++length); //length now holds the length of cString printf("Length = ",length) } else { printf("nWrong option"); getch(); } ///////// Pls Do Comment…

  • C programming Assignment – S1 and S2 2010

    C programming Assignment The Questions was Write a Short Note on UNION Preprocessor Directives Command Line Argument Typedef Statement UNION ————- A union is like a structure in which all of the members are stored at the same address. Only one member can be in a union at one time. The union data type was…