completed assignment no 1 (basics of C) but i have some doubts ….
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)
sir, when i use lint command on terminal i get error “command not found”
All E11 trainees, Kindly update the status of assignment 4. Any issues regarding the same should be posted here only.
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?
Dear E14 Trainees, Update the status/issues of Assignment 01 through this post only.
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?
All E11 trainees, Update your status of Assignment 2. Any queries regarding assignment 2 has to be posted in this thread only.
Dear E11 trainees, kindly update thee status of your Assignment 1.
#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
All E11 trainees, kindly update the status of your Assignment 3 in this hread only
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.
#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; }
#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
Dear E8 Trainees, Update the status of Multiple Data Compression project and any kind of issues has to be posted through this thread only.