But the values does change when we pass the parameters by reference, i mean by calling the address of the variable..isnt it?
Type: Posts; User: vijayshankar
But the values does change when we pass the parameters by reference, i mean by calling the address of the variable..isnt it?
Hello guys... i have a doubt over the topic functions where we pass value..
why do we use another variable while calling a function .. i mean if we have declared variable x in main() and we use...
hello guys..
void main() and int main( void) . i just want to know the difference between two and often i get a warning in coding that functions want to return a value. can u explain on this?
...
Thank you friends... i downloaded pelles c .. hope i get used to it easily.
Thank you guys.. what compiler do u suggest is best now? I use windows 7 os.
Hello guys, i tried out the following code for performing the sum of the digits of the number entered. The desired outcome was coming for some numbers in my turbo c, but when i did it with numbers...
thanks a lot.. now i got the idea behind the logic. Am just a beginner in C. thanks again and keep helping.
but that program is working, i tried it.. i dont understand why the condition of c=2 is used to print the primes.
hello guys, can u just explain me the logic that is inside the while loop in the code below. unable to understand the logic of variable c .
#include <stdio.h>
main()
{
int n,i=1,j,c;
...
If i wanna clear more such doubts, shall i continue it in the same thread or a new one.
Thank you friends.... am just a beginner in C. so pls bear with my silly mistakes and questions...
@nimitzhunter: you mean , the following coding , wright?
else
continue;
so, other...
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n;
printf("enter no:");
scanf("%d",&n);
for(i=2;i<n;i++)
{
if(n%i==0)
@Adak:
but am getting the ouput correctly..
hello friends, am vijay shankar.. am new to this forum as well as c program. so pls help me out by correcting me. i have written a program for prime, pls do tell me my mistakes.
main()
{
int...