*(ptr+i) worked. THANKS
Type: Posts; User: max1989
*(ptr+i) worked. THANKS
i want to know why dont we prefix the pointer with * when using it on dynamic array.
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
void main()
{
fgets worked thanks
#include <stdio.h>
#include <string.h>
void main()
{
int i=0;
char str[40];
printf("Program to know the string size\n");
printf("Enter a string with more than 2 words: ");
scanf("%s",...
Thats not possible in C. c++ would work. or dynamic arrays would work
is there any chance of reducing number of while loops
I am sorry for posing in wrong board, i am just looking for correct algorithm
#include <stdio.h>
void main()
{
int i,j,k,l;
i=4;
l=1;
while(i>=0)
{
j=i;
I found this puzzle in some book and i dont know the solution. please tell me how to write this program.
The following pyramid should be printed using WHILE LOOP.
...