C Language Answer key (Nov-2023)

BCA semester 1

C Language

ANSWER KEY for the HJD (HJ Doshi, Jamnagar) Preliminary exam question paper

Download

Turbo C++ IDE shortcut keys

#Short Cut KEYAction/Command
1F1For Help
2.F2Save
3.F3Open
4.F4Go to cursor
5.F5Zoom
6.F6Next
7.F7Trace into
8.F8Step over
9.F9Make
10.F10Menu
11.Alt+XQuit
12.Alt+BkspUndo
13.Shift+Alt+BkspRedo
14.Shift+DelCut
15.Ctrl+InsCopy
16.Shift+InsPaste
17.Ctrl+DelClear
18.Ctrl+LSearch again
19.Alt+F7Previous error
20.Alt+F8Next error
21.Ctrl+F9 ‘or’ Alt+R+EnterRun
22.Ctrl+F2Program reset
23.Alt+F9Compile
24.Alt+F4Inspect
25.Ctrl+F4Evaluate/Modify
26.Ctrl+F3Call stack
27.Ctrl+F8Toggle breakpoint
28.Ctrl+F5Size/Move
29.Alt+F3Close
30.Alt+F5User screen
31.Alt+0List all
32.Shift+F1Index
33.Ctrl+F1Topic search
34.Alt+F1Previous topic
35.Ctrl+F7Add watch
36.Alt+EnterToggle screen mode(Full Screen / Window)

How to use Colors in C Language

  • Program to demonstrate each color (text, background) in C Language.
  • <conio.h> header files contains the color related library function, it also contains the name constant to BLINK text.
  • Text Color, Text Background and color and BLINK option is demonstrated here.
#include <conio.h>
void main(void)
{
   int i;
   clrscr();
   textcolor(5+BLINK);
   printf("COLOR DEMO \n\n");
   for (i=0; i<16; i++)
   {
       textcolor(i);
       if (i==0)
		textbackground(WHITE);
       else
		textbackground(BLACK);
       cprintf("Color code -> %d",i);
       //cprintf("\r\n");
	printf("\n");

   }
   getch();
}

How to use if…else if ladder in C Language

%d bloggers like this: