EmbLogic's Blog

Author Archives: rahul1989

why printf giving value without using variable name

int ten = 10; int two = 2,z=3; printf(“Doing it right: “); printf(“%d minus %d is %d \n”,ten,2,ten-two); printf(“Doing it wrong: “); printf(“%d minus %d is %d\n”,ten); // In this function i have not used the variable name “ten” then … Continue reading

Posted in Data Structures with C | Leave a comment

comlement of 1′s

why 1′s complement of 1 = -2, not -1 ?

Posted in Data Structures with C | 1 Comment

master table is successfully created by RAHUL KUMAR

I have successfully completed the master table. Rahul Kumar E-7 , Batch

Posted in Data Structures with C | Leave a comment

unexpected value printed by gcc. why ?

1 #include<stdlib.h> 2 3 int main() 4 { 5 int de=1234; 6 float j=45.1234; 7 char ch= ‘s’; 8 double s= 3.1415E+5; 9 10 printf(“de= %d \n”,de); 11 printf(“j= %f\n”,j); 12 printf(“ch= %c \n”,ch); 13 printf(“s= %e \n”,s); 14 return … Continue reading

Posted in Data Structures with C | 1 Comment

facing problem with i++ & ++i

#include<stdio.h> main() { int i=0;                                                                // value of i assigned printf(“the value of i is %d\n”,i);                       // value of i printed … Continue reading

Posted in Data Structures with C | 1 Comment

facing issues with i++ and ++i

Posted in Data Structures with C | Leave a comment