EmbLogic's Blog

Category Archives: Uncategorized

q-WAP to find the no of times that a given word(i.e a short string) occurs in a string (i.e a long string!)………..how we can start this programe…………

Posted in Uncategorized | 5 Comments

array assignment-ques10 not getting the meaning of it..?

wap that reads a single word from character array and print it backward..? is it similar to string reverse(ques9).?    

Posted in Uncategorized | 1 Comment

issue in c program

//just go thru the simple prog #include #include int main() { char str[5]; int i; for(i=0;i<5;i++) { printf("\n enter the character :"); scanf("%c",str+i); } printf("\n %s\n ", str); return 0; } predict what is the output if u think output … Continue reading →

Posted in Uncategorized | 2 Comments

issue in basic scanf condition

//just go thru the simple prog #include #include int main() { char str[5]; int i; for(i=0;i<5;i++) { printf("\n enter the character :"); scanf("%c",str+i); } printf("\n %s\n ", str); return 0; } predict what is the output if u think output … Continue reading →

Posted in Uncategorized | 2 Comments

how can i print : “hello”….printing inverted commas as well.

Posted in Uncategorized | 1 Comment

pointers

what does this declaration means: char *ptr=”hello”; ??

Posted in Uncategorized | 3 Comments

pointers

how is memory allocated in expression int *i=100; ?? above statement does’nt show any error..but is the statement correct?? because in documents its written “when a pointer is declared it doesnot point anywhere,we must set it to point sumwhere before … Continue reading →

Posted in Uncategorized | 1 Comment

issue in assingment 02……

q15-WAP that reads integers until 0 is entered.after i/p terminates,the program should report the total no of even integers (excluding the 0) entered,the avg value of even integers………………………..how we read the i/p until 0…plz comment.

Posted in Uncategorized | 2 Comments

issue in assingment 02………

q.16-using if else statements,WAP that reads up to #,replaces each period with an exclamation mark,replaces each exclamation mark intially present with two EM,&reports at the end the no of substitution it has made………………plz comment

Posted in Uncategorized | Leave a comment

makefile

myapp: main.o 21.o 22.o gcc -o myapp main.o 21.o 22.o main.o: main.c a.h gcc -c main.c 21.o: 21.c a.h b.h gcc -c 21.c 22.o: 22.c b.h c.h gcc -c 22.c makefile:1: *** recipe commences before first target. Stop. ………how to … Continue reading →

Posted in Uncategorized | 2 Comments

number of users in linux

how many number users can be created  on a linux system.???

Posted in Uncategorized | 2 Comments

problem in conversion of string

hi, how to convert a given lower case string into upper case

Posted in Uncategorized | 5 Comments

Query related to Structure’s Assignment

wap to display software timer using structure with pointers. how to start this??

Posted in Uncategorized | 1 Comment

unexpected output???

#include<stdio.h> int main(void) { float a,b; b=2.0e20+1.0; a=b-2.0e20; printf(“%f\n”,a); return 0; } output is  :    4008175468544.000000 how this can be possible????????????????

Posted in Uncategorized | 3 Comments

issue in conversion specifier

%#d  %#o   %#x what this # keyword do in this conversion

Posted in Uncategorized | 3 Comments