Jan
10
C Programming Tutorial by Akhilesh Mishra and Kiran Maurya (BCA-V, 2019-2022 batch)- SMS VARANASI
Jan
10
C Programming Tutorial by Akhilesh Mishra and Kiran Maurya (BCA-V, 2019-2022 batch)- SMS VARANASI
Apr
28
Definition and declaration; Variables initialization; Accessing fields and structure operations;
CLICK TO DOWNLOAD STUDY MATERIAL -1
Nested structures; Union: Definition and declaration; Differentiate between Union and structure
CLICK TO DOWNLOAD STUDY MATERIAL -2
typedef, Structure and function calls, Pointer to structure
Apr
28
Definition of Preprocessor; Macro substitution directives; File inclusion directives; Conditional compilation
CLICK TO DOWNLOAD STUDY MATERIAL -1
Bitwise operators; Shift operators; Bit field
Apr
28
In this file, we are discussing the concept of a file and only the list of important file handling functions.
CLICK TO DOWNLOAD STUDY MATERIAL -1
It covers opening modes of files, standard function: fopen(), fclose()
CLICK TO DOWNLOAD STUDY MATERIAL -2
In this, I have discussed the topic “how to write into a file using C program” for which used some standard functions: fputc(), fprintf(), fwrite()
CLICK TO DOWNLOAD STUDY MATERIAL -3
In this, Topic discussed is “how to read data from a file using C program” for which used some standard functions: fgetc(), fscanf(), fread()
CLICK TO DOWNLOAD STUDY MATERIAL -4
In this file, we are discussing some other important standard functions: fseek(), ftell(), rewind()
Mar
04
#include<stdio.h> void main(){ //printf("Eneter a number:"); int i=10; int *p=&i; printf("%d\n",i); printf("%d\n",&i); printf("%d\n",&p); printf("%d\n",p); printf("%d\n",*p); } #include<stdio.h> void main(){ int i=10; int *p=&i; *p=20; printf("%d\n",i); printf("%d\n",*p); } #include<stdio.h> void main(){ int i=10; int *p; p=&i; //int *p=&i; *p=20; i=*p+20; printf("%d\n",i); printf("%d\n",*p); } #include<stdio.h> void ch(int n){ n=n+10; printf("Hello ch(%d)\n",n); } void main(){ int a=60; ch(a); printf("a=%d\n",a); } #include<stdio.h> void ch(int *n){ *n=*n+10; printf("Hello ch(%d)\n",*n); } void main(){ int a=60; ch(&a); printf("a=%d\n",a); } #include<stdio.h> void ch(int *n){ *n=*n+10; printf("Hello ch(%d)\n",*n); } void main(){ int a=60; ch(&a); a=a+10; printf("a=%d\n",a); } #include<stdio.h> void main(){ int num=20; //int *ptr=# int *ptr; ptr=# printf("num=%d\n",num); printf("*ptr=%d\n",*ptr); num=num*5; *ptr=*ptr+100; printf("num=%d\n",num); printf("*ptr=%d\n",*ptr); printf("Address of num=%d\n",&num); printf("Address of num=%d\n",ptr); printf("Address of ptr=%d\n",&ptr); } #include<stdio.h> void main(){ int num1=20; int num2=50; int *ptr; printf("value of num1=%d\n",num1); printf("value of num2=%d\n",num2); ptr=&num1; num1=num2; num2=*ptr; printf("value of num1=%d\n",num1); printf("value of num2=%d\n",num2); } #include<stdio.h> void main(){ int num1=20; int num2=50; int ptr; printf("value of num1=%d\n",num1); printf("value of num2=%d\n",num2); ptr=num1; num1=num2; num2=ptr; printf("value of num1=%d\n",num1); printf("value of num2=%d\n",num2); } #include<stdio.h> void main(){ int num; int *ptr; ptr=# printf("Enter a Number:"); scanf("%d",ptr); printf("Square of Number is %d\n",(*ptr * *ptr)); } #include<stdio.h> #include<stdlib.h> void main(){ int *ptr; ptr=(int*) malloc(sizeof(int)); printf("Enter a Number:"); scanf("%d",ptr); printf("Square of Number is %d\n",(*ptr * *ptr)); } #include<stdio.h> #include<stdlib.h> int swap1(int n1,int n2){ int tmp=n1; n1=n2; n2=tmp; } int swap2(int *n1,int *n2){ int tmp=*n1; *n1=*n2; *n2=tmp; } void main(){ int a,b; printf("Enter two numbers:\n"); scanf("%d%d",&a,&b); printf("a=%d \t b=%d \n",a,b); swap1(a,b); printf("a=%d \t b=%d \n",a,b); swap2(&a,&b); printf("a=%d \t b=%d \n",a,b); } #include<stdio.h> void main(){ int n; int *ptr; ptr=&n; printf("Enter a number: \n"); scanf("%d",ptr); printf("Square is: %d",*ptr * *ptr); } #include<stdio.h> void main(){ int *ptr; ptr=(int*) malloc(sizeof(int)); printf("Enter a number: \n"); scanf("%d",ptr); printf("Sum is: %d",*ptr + *ptr); } #include<stdio.h> #include<stdlib.h> void main(){ int *ptr1,*ptr2; ptr1=(int*) malloc(sizeof(int)); ptr2=(int*) malloc(sizeof(int)); printf("Enter two number: \n"); scanf("%d",ptr1); scanf("%d",ptr2); printf("Sum is: %d",*ptr1 + *ptr2); } #include<stdio.h> #include<stdlib.h> void main(){ char *ptr1; ptr1=(char*) malloc(sizeof(char)); printf("Enter A char: \n"); scanf("%c",ptr1); printf("Char is: %c",*ptr1); } #include<stdio.h> #include<stdlib.h> void main(){ char *ptr1; ptr1=(char*) malloc(sizeof(char)); printf("Enter A char: \n"); scanf("%c",ptr1); printf("Char is: %c",*ptr1); }
Dec
18
— Thank you Tarushi, CMS Gomti Nagar, Lucknow for asked this questions
import java.util.*;
public class Prog2
{
public void main(String str){
str=str.toUpperCase(); //to Convert sentence stored in str into Capital Letters
int len=str.length(); // to get the length of the sentence
int count=0; // count variable will be used to count the unique chars in sentence.
String temp=””; // temp string we are using to hold strings have only alphabets step by step in below loop
for(int i=0;i<len;i++)
{
char ch=str.charAt(i); //storing single char of each step in ch variable
if(ch<=’A’ && ch<=’Z’) // condition to check whether ch has an alphabet
{
if(temp.indexOf(ch)==-1) //condition to check; did char in ch exists in temp if not increase count.
count++;
temp=temp+ch; // put every char in temp fetch in each iteration
}
}
System.out.println(str); // to print sentence in capital letters
System.out.println(count+” letters”); // to print unique occurence of letters in accepted sentence.
}
}
Dec
17
— Thank you Tarushi, CMS Gomti Nagar, Lucknow for asked this questions
import java.util.*;
public class Prog1
{
public void main(int num){
int len=0; // variable to store the of the number of digits in the given number.
int temp=num; // variable hold the value of num temporarily
while(temp!=0) // Loop used to find the length of the number
{
temp=temp/10;
len++;
}
int i=0;
int arr[]=new int[len]; // int arr is defined with len find from above loop
while(num!=0) // loop used to store each digit from given number to arr
{
arr[i]=num%10;
num=num/10;
i++;
}
Arrays.sort(arr); // it will sort the digits stored in ascending order
for(i = len – 1; i >= 0; i–) // Loop used to form greatest number using digits stored in arr in ascending order therefore this loop starts from len-1 till 0
{
num = num * 10 + arr[i];
}
System.out.println(num); //printing the greatest number
}
}
Nov
30
MODEL PAPER OF OBJECT ORIENTED PROGRAMMING USING C++ FOR BCA-III SEMESTER (BCA-S201T)
Prepare all questions without any choice. Some of them will definitely be asked in your semester Exam either directly or indirectly.
Nov
29
Prepare all questions without any choice. Some of them will definitely be asked in your semester Exam either directly or indirectly.
Nov
29