Assignments 1,2,3 are completed and uploaded.
write a program that accept an integer as an input and displays all prime no. smaller or equal to that integer…
#include char input[] =”SSSWITECHL1\1\1W\WALLMP1″; int main() { int i,c; for(i=2;(c=input[i]) !=”; i++) { switch(c) { case’a’:putchar (‘i’);continue; case ’1′:break; case 1:while((c=input[++i]) !=’\1′ && c!= ”); case 9:putchar(‘s’); case ‘E’: case ‘L’: continue; default: putchar(c);continue; } putchar(”); } return 0; }
to siddarth sir, assignments 1,2,3(arrays using pointers)& 4(script 1assignment) is completed & two three problems left in pointers assignment……..
assignment number 1,2,3,4 done….two-three problems in pointers assignments with partially completed functions assignment …
1,2,3,4 assignments are completed and in fifth pointer assignment there is three problems remaining.
#include<stdio.h> int main(void) { int i=2147483647; unsigned int j=4294967295; printf(“%d %d %d\n”,i,i+1,i+2); printf(“%u %u %u\n”,j,j+1,j+2); return 0 }
#include<stdio.h> int main() { double d = 3.2,x; int i = 2,y; x = (y=d/i)*2; printf(“%g\t%g\n”,double(x),double(y)); y = (x=d/i)*2; printf(“%g\t%g\n”,double(x),double(y)); y = d*(x=2.5/d); printf(“%g\n”,double(y)); x = d*(y=((int) 2.9+1.1/d)); printf(“%g\t%g\n”,double(x),double(y)); return 0; }
#! /bin/bash echo “enter string 1″ read str1 echo $str1 echo “enter string 2″ read str2 if [[ $str1 == $str2 ]] then echo $str1 and $str2 matched else echo $str1 and $str2 not matched fi exit 0
Will it include NULL character at the end of string if we accept a string using getchar function? (Using in character double pointer program)
Why does the compiler inserts a null character in begining of first row only when the no. of rows and columns are to be input by the user and not in successive rows of double pointer…
Group-D Members Name Sudhir Sharma Gaurav Sharma Tejveer Singh TanuShri
Project Title:- (Serial Port Device Drivers) Members:- Gurpreet singh Manoj Kumar Pankaj Hooda Pulkit Agarwal Arun Goyal …Thank you…
To Prabhjot Sir Batch ELARM 12(Group A) Project Members :- Amit Sharma Shivjot Sharma Abhinav Kainth Dinesh Malhotra