EmbLogic's Blog

Assignment status

Assignments 1,2,3 are completed and uploaded.

 

Posted in Uncategorized | Leave a comment

assignment status

assignment 3 is now completed

Posted in Uncategorized | Leave a comment

problem in assignment 2

write a program that accept an integer as an input and displays all prime no. smaller or equal to that integer…

Posted in Uncategorized | Leave a comment

Assignment status

Shell assignment 1,2 complete.

C assignment 1,2,3,4 complete. Facing some problem in string manipualtion in one question.

Thank you

Posted in Data Structures with C | Leave a comment

warning: unknown escape sequence: ‘\W’ [enabled by default] and error: empty character constant

#include
char input[] =”SSSWITECHL1\1\1W\WALLMP1″;
int main()
{
int i,c;
for(i=2;(c=input[i]) !=”; i++)
{
switch(c)
{
case’a’:putchar (‘i’);continue;
case ’1′:break;
case 1:while((c=input[++i]) !=’\1′ && c!= ”);
case 9:putchar(‘s’);
case ‘E’:
case ‘L’: continue;
default: putchar(c);continue;
}
putchar(”);
}
return 0;
}

Posted in Uncategorized | 1 Comment

status of assignments

to siddarth sir,

assignments 1,2,3(arrays using pointers)& 4(script 1assignment) is completed & two three problems left in pointers assignment……..

Posted in Uncategorized | Leave a comment

assignments status

assignment number 1,2,3,4 done….two-three problems in pointers assignments with partially completed functions assignment …

Posted in Uncategorized | Leave a comment

assignment status

1,2,3,4 assignments are completed and in fifth pointer assignment there is three problems remaining.

Posted in Uncategorized | Leave a comment

warning: decimal constant is unsigned only in ISO C90 [enabled by default]

#include<stdio.h>
int main(void)
{
int i=2147483647;
unsigned int j=4294967295;
printf(“%d %d %d\n”,i,i+1,i+2);
printf(“%u %u %u\n”,j,j+1,j+2);
return 0

}

Posted in Uncategorized | 1 Comment

error: expected expression before double

#include<stdio.h>

int main()
{
double d = 3.2,x;
int i = 2,y;
x = (y=d/i)*2;
printf(“%g\t%g\n”,double(x),double(y));
y = (x=d/i)*2;
printf(“%g\t%g\n”,double(x),double(y));
y = d*(x=2.5/d);
printf(“%g\n”,double(y));
x = d*(y=((int) 2.9+1.1/d));
printf(“%g\t%g\n”,double(x),double(y));
return 0;
}

Posted in Uncategorized | 2 Comments

need of double square brackets..?????

#! /bin/bash

echo “enter string 1″
read str1
echo $str1
echo “enter string 2″
read str2
if [[ $str1 == $str2 ]]
then
echo $str1 and $str2 matched
else
echo $str1 and $str2 not matched
fi
exit 0

Posted in Uncategorized | 2 Comments

Functionality of Getchar() function

Will it include NULL character at the end of string if we accept a string using getchar function?

(Using in character double pointer program)

Posted in Uncategorized | Leave a comment

Doubt in Double character pointer prg

Why does the compiler inserts a null character in begining of first row only when the no. of rows and columns are to be input by the user and not in successive rows of double pointer…

Posted in Uncategorized | 1 Comment

Compressing and decompressing

I am able to compress a string by replacing ith elemnt that is space with I+1 element can anyone now help me with decompressing it

Posted in Data Structures with C | Leave a comment

Batch:- ELARM-12

Group-D
Members Name
Sudhir Sharma
Gaurav Sharma
Tejveer Singh
TanuShri

Posted in Uncategorized | Leave a comment