EmbLogic's Blog

Category Archives: Data Structures with C

BASICS OF ‘C’

completed assignment no 1 (basics of C) but i have some doubts ….

Posted in Data Structures with C | Leave a comment

Studied VIM text-editor,vim commands,introduction to c(Declaring Variables,Pre-processing Statements,Arithmetic Operators,Variables and Operators…Constants and Variable Types,Operators in C,Operators and Expressions,Expressions and Statements,Operator Precedence)

Posted in Data Structures with C | Leave a comment

Lint command

sir, when i use lint command on terminal i get error “command not found”

Posted in Data Structures with C | Leave a comment

E11 : Assignment 4

All E11 trainees, Kindly update the status of assignment 4. Any issues regarding the same should be posted here only.

Posted in Data Structures with C | 2 Comments

E-14 Pointers

declared char *ptr; printed the address allocated to ptr (&ptr), garbage address of ptr (ptr ) and the garbage value (*ptr) Error: Segmentation Fault. Can you please explain why?

Posted in Data Structures with C | Tagged , , , | 5 Comments

E14: Assignment 01

Dear E14 Trainees, Update the status/issues of Assignment 01 through this post only.

Posted in Data Structures with C | 26 Comments

E-14 pre-increment and logical operators

Initializing x,y,z=1 and after applying operation ++x||++y&&++z; The values when printed gives: x=2; y=1; and z=1; It increments  the value of x but does not increment the values of y and z.  can anyone please explain why?

Posted in Data Structures with C | Tagged , | Leave a comment

E11 : Assignment 2

All E11 trainees, Update your status of Assignment 2. Any queries regarding assignment 2 has to be posted in this thread only.

Posted in Data Structures with C | 24 Comments

E11 : Assignment 1

Dear E11 trainees, kindly update thee status of your Assignment 1.

Posted in Data Structures with C | 12 Comments

error

#include<stdio.h> int main() { int i; i = 10; print(i); return 0; } void print(int a) { printf(“%d\n”,a); } output:warning: conflicting types for ‘print’ [enabled by default] note: previous implicit declaration of ‘print’ was here

Posted in Data Structures with C | 2 Comments

E11 :Assignment 3

All E11 trainees,  kindly update the status of your Assignment 3 in this hread only

Posted in Data Structures with C | 4 Comments

E11: File I/O Project

Dear E11 students, kindly update your status of the File I/O project given by Pravjot Sir. Any queries regarding the same should be posted here in this thread only. All students are required to post a comment.  

Posted in Data Structures with C | 32 Comments

Print Star Pattern using for loop.

#include<stdio.h> int main () { printf(“Program to print a pattern of stars.\n”); int i1,i2,i3,val; printf(“Enter a number:\n”); scanf(“%d”,&val); for(i1=0;i1<val*2;i1=i1+2) { for(i3=val*2;i3>i1;i3=i3-2) { printf(” “); } for(i2=0;i2<=i1;i2++) { printf(“*”); } printf(“\n”); } return 0; }

Posted in Data Structures with C | Tagged , | Leave a comment

E14 Star Pattern Using for Loop.

#include<stdio.h> int main () { printf(“Program to print a pattern of stars.\n”); int i1,i2,i3,val; printf(“Enter a number:\n”); scanf(“%d”,&val); for(i1=0;i1<val;i1++) { /*for(i3=val;i3>i1;i3–) { printf(” “); }*/ for(i2=0;i2<=i1;i2++) { printf(“*”); } printf(“\n”); } return 0; } I tried to print a pattern … Continue reading →

Posted in Data Structures with C | Tagged | 3 Comments

E8: Multiple Data Compression Project

Dear E8 Trainees, Update the status of Multiple Data Compression project and any kind of issues has to be posted through this thread only.

Posted in Data Structures with C | 34 Comments