Design, Develop and Implement a menu driven program in C for the following operations on STACK of integers

A stack can be implemented by means of Array, Structure, Pointer and Linked-List. Stack can either be a fixed size one or it may have a sense of dynamic resizing.…

Continue ReadingDesign, Develop and Implement a menu driven program in C for the following operations on STACK of integers

Design, Develop and Implement a Program in C for converting an Infix Expression to Postfix Expression

ABOUT THE EXPERIMENT: Infix: Operators are written in-between their operands. Ex: X + YPrefix: Operators are written before their operands. Ex: +X Ypostfix: Operators are written after their operands. Ex:…

Continue ReadingDesign, Develop and Implement a Program in C for converting an Infix Expression to Postfix Expression

OpenGL program to Implement Bresenham’s line drawing algorithm for all types of slope

Program // Bresenham's Line Drawing #include #include #include int x1, y1, x2, y2; void myInit() { glClear(GL_COLOR_BUFFER_BIT); glClearColor(0.0, 0.0, 0.0, 1.0); glMatrixMode(GL_PROJECTION); gluOrtho2D(0, 500, 0, 500); } void draw_pixel(int x,…

Continue ReadingOpenGL program to Implement Bresenham’s line drawing algorithm for all types of slope

C program to copy one string into another string and count the number of characters copied

#include #include void main() { char strng1[50], strng2[50]; int i; printf(“Enter a stringn”); scanf(“%s", strng2); for(i=0; strng2[i]!=’’; i++) strng1[i]=strng2[i]; strng1[i]=’’; printf(“n”); printf(“after copy:%sn”, strng1); printf(“number of charcters copied = %dn”,…

Continue ReadingC program to copy one string into another string and count the number of characters copied