Dropdowns

/*WAP for Prefix increment/decrement*/ #include<stdio.h> #include int main(void) { int x=8; printf(“x=%d\t”,x); printf(“x=%d\t”,++x); /*Prefix increment*/ printf(“x=%d\t”,x); printf(“x=%d\t”,–x); /*Prefix decrement*/ printf(“x=%d\n”,x); return 0; } Output: x=8 x=9 x=9 x=8 x=8

c language tutorial learn c language study c language

/*Write a Program to understand the floating point arithmetic operations */ #include<stdio.h> int main(void) { float a=12.4,b=3.8; printf(“Sum=%.2f\n”,a+b); printf(“Difference=%.2f\n”,a-b); printf(“Product=%.2f\n”,a*b); printf(“a/b=%.2f\n”,a/b); return 0; } Output: Sum=16.20 Difference=8.60 Product=47.12 a/b=3.26

c language tutorial learn c language study c language

WAP to check whether a given word exists in a file or not. If yes then find the number of times it occurs.

b. tech. bca c language tutorial learn c language study c language

WAP to compare the contents of two files and determine whether they are same or not.

b. tech. bca c language tutorial learn c language mca study c language

WAP to swap two elements using the concept of pointers.

b. tech. bca c language tutorial learn c language mca study c language

Define a structure data type in C language

b. tech. c language tutorial learn c language study c language

WAP to implement strlen (), strcat (),strcpy () using the concept of Functions.

b. tech. bca c language tutorial learn c language mca study c language

WAP that finds the sum of diagonal elements of a mxn matrix.

b. tech. bca c language tutorial learn c language mca study c language

WAP to add and multiply two matrices of order nxn.

b. tech. bca c language tutorial learn c language mca study c language

WAP to sort the elements of the array in ascending order using Bubble Sort technique.

b. tech. bca c language tutorial learn c language mca study c language
On this page