EmbLogic's Blog

Category Archives: Data Structures with C

Memory address:

int *ptr,a; ptr=&a; printf(“%p”,ptr); is it prints the physical address of ram or logical??

Posted in Data Structures with C | 3 Comments

update to Sidharth Sir!

sir, i have completed my first assignment.

Posted in Data Structures with C | Leave a comment

updates to sidharth sir…

assignment 1 complete, 2-d array using pointers complete

Posted in Data Structures with C | Leave a comment

update to Sidharth sir: 2nd byte of an int

Sir, now, able to get byte wise values of an int.

Posted in Data Structures with C | Leave a comment

Floating points overflow

Sir, How to check the overflow and underflow of a float.??  

Posted in Data Structures with C | Leave a comment

Pre increment operator

sir, I have some problem in Pre-increment operator for the following expression. i=10; printf(“%d\n”,++i  +  ++i  +  ++i); I am getting un-expected output. it’s answer is 37.. but how??

Posted in Data Structures with C | 3 Comments

Hi! i have problem with these expressions:- y=z=4; x=y==z; printf(“%d,”x); x==(y=z);printf(“%d”,x); what is  value of x in these two printf statement?

Posted in Data Structures with C | 6 Comments

float

i declared a float and initialize it to 69.01 now when i print this float it prints 69.010002 & when initialize it to 69.02 it prints 69.019997, when initialize it to 69.6969 it prints 69.696899, when initialize it to 696969.696969 … Continue reading →

Posted in Data Structures with C | 1 Comment

Macros and function………………..

what is the conceptual difference between macros and function…………???

Posted in Data Structures with C | 1 Comment

structure………..

why we can not compare two variables of same structure type????

Posted in Data Structures with C | 2 Comments

c_basic

why we do not use address operator before variables in printf statement for fetching value: example: printf(“%d”,&a);

Posted in Data Structures with C | 1 Comment

How this program is excutable without existing any header file????

int main()         //without header file {int *i; char k; float s; char j[5]; struct hi { }; return 0; } //where these all keywords and main function is declared and defined…?????

Posted in Data Structures with C | 3 Comments

why not Address operator & used with the string variables in scanf function and used for other types??..

Posted in Data Structures with C, Uncategorized | 3 Comments

why we should avoid single character as string???…

example : char a[]=”a”; this is possible but not efficient because we have other method to assign character const as shown below: char c=’a’;

Posted in Data Structures with C | 3 Comments

c basics

what is the difference between NULL and NUL  ………………..??????

Posted in Data Structures with C | 2 Comments