Education

2.1.1 Setting up JDK and Android Studio

Android Studio Android Studio is the official Integrated Development Environment (IDE) for Android app development, based on IntelliJ IDEA. Android Studio offers even more features that enhance your productivity when building Android apps, such as: A flexible Gradle-based build system A fast and feature-rich emulator A unified environment where you can develop for all Android …

2.1.1 Setting up JDK and Android Studio Read More »

1.2.3 Array and Structure(Array as member of structure & Array of structure)

When relation between array and structure is considered, there are two things to consider Array(s) as member of structure Array of structure consider the following structure definition struct student { int rno; char name[10]; int marks[3]; int tot; }; It consist of 4 members: i)roll number, ii)name, iii)array of marks of three subjects i.e. marks[0] …

1.2.3 Array and Structure(Array as member of structure & Array of structure) Read More »

1.2.2 typedef and accessing structure member

1. Typedef:- The typedef is a C facility to create new data types. It does it by giving a user defined name to existing types. For example following declarations typedef int counter; creates anew data type  counter which is nothing but integer value. Above declaration makes counter a synonym of integer. Once this declaration is …

1.2.2 typedef and accessing structure member Read More »

1.2.1 Defining, declaring and Initializing structure

Arrays cannot be used to represent data items having different datatypes. Therefore C has one user define datatype that allows to represent a collection of variables having different datatypes. It is known as Structure. Structure is a collection of members of different datatypes. Structure is a user defined datatype for handling a group of logically …

1.2.1 Defining, declaring and Initializing structure Read More »

1.1.5 Two-Dimensional character Array operations (Searching Elements, Copying, Merging, Finding length of given string)

#include<stdio.h>#include<conio.h>#include<string.h>void main(){ char fruits[5][10],ans,tmp[10],ser[10],rep[10]; int i,j,ch,len,flag=0,loc; clrscr(); for(i=0;i<5;i++) {  printf(“Enter fruits:”);  scanf(“%s”,fruits[i]); } do {  printf(“n1.Sorting”);  printf(“n2.Display”);  printf(“n3.Find Length”);  printf(“n4.Search”);  printf(“n5.Copy the name at specified location”);  printf(“nEnter Ur Choice:”);  scanf(“%d”,&ch);  switch(ch)  {   case 1:    for(i=0;i<5;i++)    {     for(j=i+1;j<5;j++)     {       if(strcmp(fruits[i],fruits[j])>0)       {          strcpy(tmp,fruits[i]);          strcpy(fruits[i],fruits[j]);          strcpy(fruits[j],tmp);  …

1.1.5 Two-Dimensional character Array operations (Searching Elements, Copying, Merging, Finding length of given string) Read More »