No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
This code from C++ to Turbo C [ICODE]#include<stdio.h> #include<conio.h> public class Stack { private: int size; int top; int *values; public: Stack(int size) { this->size =size; values = new int [size]; top = -1; } void main() { Stack *myStack = new Stack(10); } }; [/ICODE] what will be its … |
|
break; The break is used to (1)terminate a case in the switch statement. (2)Force an immediate termination of a loop. sample prog. void main() { int a; printf("1. Happy\n"); printf("2. Sad\n"); printf("Enter Your Choice.."); scanf("%d",a); switch(a) { case 1: { printf("You are happy."); break; } case 2: { printf("You are … |