i belong to research i not much aware of this concepts of gcc and linux pretty new envi.
do u have any idea,any envi variable is present to store the default path of libraries how to view that...
Type: Posts; User: shyam.sunder91
i belong to research i not much aware of this concepts of gcc and linux pretty new envi.
do u have any idea,any envi variable is present to store the default path of libraries how to view that...
dont concern the concept but problem is with c programming
Actually i am working on a simulation which mimics the subjective analysis of MOS(Mean Opinion Score) Evaluation
My job is to compare...
problem solved replaced condition of for loop
*porg+i with *(porg+i)..........damn pointers :)
doubt not resolved...by this solution
problem is why my code takes a large time to give output....
//this program is supposed to check the user password
//the approach used is take password form console in to array and
//compare...
#include<stdio.h>
main()
{
int i;
static char array[500],c;
for(i=0;(c=getchar())!=EOF;i++)
{
laser light your idea was good looking to code it soon il post that
my question is
we have successfully removed the comments but the characters remain in their places the spaces are not removed how to remove spaces and make the program spaces free output
//a program which works as a preprocess removes comments in a given program
#include<stdio.h>
main()
{
int i,start,end;
char array[500],c;
for(i=0;(c=getchar())!=EOF;i++)
...
very thanks that was my fault used ctrl+Enter instead ctrl+d very sorry im a beginner execuse me admin
after i execute the code by ./code
>i have entered a pragraph
>i have pressed Ctrl+Enter to denote EOF
>then a nothing happened i m supposed to see the results. the console keep on...
provide your valuable links which would be useful for my campus placement preperation
guys thank u very much.im just beginner....these may seem silly to u . :)
//counting no:characters
#include <stdio.h>
main()
{
int c;
for(c=0;getchar()!=EOF;c++)
;
printf("%d",c);
}