EmbLogic's Blog

Author Archives: sumit.ahuja

E8 : TODAY’s STATUS

i have practiced the concept of pipes using fork..also implemented the inter process communication between two processes using fork n passing the file descriptor through execl..  

Posted in Uncategorized | Leave a comment

E-8 PROJECT STATUS

i have completed my compression n decompression for codelength 4..n done by using separate functions for masterarray,codelength,encryption key , compression n decompression.. nw am starting up with the same for codelength 2.. n then will optimise the whole using switch … Continue reading

Posted in Uncategorized | Leave a comment

ARRAY: the name of confusion

#include <stdio.h> int main() { int a[5][5],c[5][5],i,j; int b[2][3]={{1,2,3},{3,4,5}};         for(i=0;i<5;i++)         {         for(j=0;j<5;j++)         {         printf(“array B: %d\n”,b[i][j]);         printf(“enter array A: “);         scanf(“%d”,&a[i][j]);         c[i][j]=a[i][j]+b[i][j];         printf(“c[%d}[%d] : %d \n\n  “,i,j,c[i][j]); } } return 0; … Continue reading

Posted in Data Structures with C | 1 Comment

a query for int overflow

int i=2147483647; printf(“%d %d %d\n”,i,i+1,i+2); output  2147483647  – 2147483648  -2147483647   is this the case of INTEGER OVERFLOW?? JUSTIFY…

Posted in Uncategorized | 5 Comments

how to print the result of an arithmetic calculation in a shell script

echo 4 +5   wat should i use to make its ans= 9 . plz tell me the complete statement

Posted in Shell Scripts | 2 Comments

master array done..working on assignment-1

Posted in Data Structures with C | Leave a comment

unexpected output of operation on post n pre increment operators

int main() { int g,l; int l=100; g=l- – + l++; printf(“g = %d”,g); return 0; }   predicted output:200   actual output:198 why?? post incrmt r given d higher pref…then ans should be 200.

Posted in Data Structures with C | Leave a comment