EmbLogic's Blog

Category Archives: Uncategorized

Binary Search

Searching is one of the most important task for any programmer. We have too many techniques to do this ,among all the techniques we are using Binary search right now because Binary search is too good for searching a number … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Program to Multiply Two 3 X 3 Matrices

#include int main() { int a[10][10], b[10][10], c[10][10], i, j, k; int sum = 0; printf(“\nEnter First Matrix : n”); for (i = 0; i <3; i++) { for (j = 0; j < 3; j++) { scanf("%d", &a[i][j]); } … Continue reading

Posted in Uncategorized | Leave a comment

Swap / Interchange two variables without using Third Variable

#include int main() { int num1, num2; printf(“\nEnter First Number : “); scanf(“%d”, &num1); printf(“\nEnter Second Number : “); scanf(“%d”, &num2); num1 = num1 ^ num2; num2 = num1 ^ num2; num1 = num1 ^ num2; printf(“\n Numbers after Exchange … Continue reading

Posted in Uncategorized | Leave a comment

Time calls in system Programming.

In system programming it is very important to know the current time of your system ,Because you will be often needed to use that information i.e every time when you create any File or Directory and then you want to … Continue reading

Posted in Linux Internals and System Programming, Uncategorized | Tagged , , | Leave a comment

disadvantages of global

Too many variables , if declared as global , then they remain in the memory till program execution is over Unprotected data : Data can be modified by any function

Posted in Uncategorized | Leave a comment

insert unique characters in an array from a file(string) using functions,makefile,shell script,rcs.

RCS file: dec.h,v Working file: dec.h head: 1.2 branch: locks: strict parvinder: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: declare the prototypes of functions —————————- revision 1.2 locked by: parvinder; date: 2017/03/07 … Continue reading

Posted in Uncategorized | 2 Comments

Binary search using random function taking size of array and range of integer at run time

RCS file: arrayinput.c,v Working file: arrayinput.c head: 1.4 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: take input for hte array —————————- revision 1.4 date: 2017/03/06 10:16:39; author: mayank; state: Exp; … Continue reading

Posted in Uncategorized | Leave a comment

Programs to search elements in an array using rcs and make file

RCS file: display.c,v Working file: display.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: displays the list —————————- revision 1.1 date: 2017/03/04 11:59:48; author: emblogic; state: Exp; Initial revision … Continue reading

Posted in Uncategorized | Leave a comment

sorting a list and search element by using Insertion sort,Linear search and Binary search

  RCS file: dec.h,v Working file: dec.h head: 1.3 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 3; selected revisions: 3 description: declartion prototyps —————————- revision 1.3 date: 2017/03/04 06:48:30; author: parvinder; state: Exp; lines: +1 … Continue reading

Posted in Uncategorized | Leave a comment

using curl to access ftp server

The title doesn’t sound interesting if you have no idea what is curl. Why we need to use curl to access ftp server, if we can access ftp with tools like ftp in console or gFTP? Well gFTP is a … Continue reading

Posted in Uncategorized | Leave a comment

Program for rcs,makefile using shell

RCS file: main.c,v Working file: main.c head: 1.1 branch: locks: strict jgeorge: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: enter enter array —————————- revision 1.1 locked by: jgeorge; date: 2017/02/28 07:41:41; author: … Continue reading

Posted in Uncategorized | Leave a comment

RCS system

RCS file: arrfunc.c,v Working file: arrfunc.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: basic array program —————————- revision 1.1 locked by: root; date: 2017/02/28 10:58:27; author: … Continue reading

Posted in Uncategorized | Leave a comment

About Addition Of Two Mtrixes Using 2d Array

RCS file: 2dadd.c,v Working file: 2dadd.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: Program to addition of 2 matrixes —————————- revision 1.1 date: 2017/02/28 08:09:30; author: parvinder; state: … Continue reading

Posted in Uncategorized | Leave a comment

basic programing using Shell Scripting ,RCS,Make File

RCS file: main.c,v Working file: main.c head: 1.1 branch: locks: strict parvinder: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: maint function of add. and swap —————————- revision 1.1 locked by: parvinder; date: … Continue reading

Posted in Uncategorized | Leave a comment

Project structured programming using make&rcs

RCS file: a.out,v Working file: a.out head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: rendo —————————- revision 1.1 date: 2017/02/27 12:28:38; author: mayank; state: Exp; Initial revision ============================================================================= RCS … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment