Click here to Skip to main content
13,549,157 members

ATL / WTL / STL

 
GeneralRe: how to initialize a value to pointer ? Pin
Tarun Jha26-Dec-17 8:13
memberTarun Jha26-Dec-17 8:13 
AnswerRe: how to initialize a value to pointer ? Pin
Richard MacCutchan21-Dec-17 21:42
protectorRichard MacCutchan21-Dec-17 21:42 
QuestionProblem with recursion. Pin
Tarun Jha16-Dec-17 5:46
memberTarun Jha16-Dec-17 5:46 
QuestionRe: Recursion not working. Pin
Richard MacCutchan16-Dec-17 6:24
protectorRichard MacCutchan16-Dec-17 6:24 
AnswerRe: Recursion not working. Pin
Tarun Jha16-Dec-17 7:51
memberTarun Jha16-Dec-17 7:51 
GeneralRe: Recursion not working. Pin
Richard MacCutchan16-Dec-17 9:49
protectorRichard MacCutchan16-Dec-17 9:49 
GeneralRe: Recursion not working. Pin
Rick York21-Dec-17 9:49
memberRick York21-Dec-17 9:49 
QuestionTo take input for n number of arrays and print it. Pin
Tarun Jha10-Dec-17 4:55
memberTarun Jha10-Dec-17 4:55 
in the below code it prints for arr[0] and not after it. please tell to correct.

<pre>
#include <stdio.h>

int i, j;
int arr[100][100];

void array(int arr[i][j], int size[i+1])
{

	for(j=0; j<size[i+1]; j++)
	{
		scanf("%d", &arr[i][j]);
		printf("arr[%d][%d]\n", i, j);
	}
	
}

/*
void merge()
{
	int ;

}
*/

int main()
{
	int num,size[100];

	printf("Enter the number of arrays: \t");
	scanf("%d", &num);
	
	size[0] = 0;
	
	//feeding elements.
	for(i=0; i<num; i++)
	{
		printf("\nEnter the size of the array: \t");
		scanf("%d", &size[i+1]);

		printf("\nEnter the array: \n");
		//int arr[i][size[i+1]];
		array(arr, size);
	}

	for(i=0; i<num; i++)
	{
		for(j=0; j<size[i+1]; j++)
		{
			printf("\n%d", arr[i][j]);
		}
	}
	
	return 0;
}


AnswerRe: To take input for n number of arrays and print it. Pin
Richard MacCutchan10-Dec-17 5:49
protectorRichard MacCutchan10-Dec-17 5:49 
GeneralRe: To take input for n number of arrays and print it. Pin
Tarun Jha10-Dec-17 6:11
memberTarun Jha10-Dec-17 6:11 
GeneralRe: To take input for n number of arrays and print it. Pin
Richard MacCutchan10-Dec-17 6:18
protectorRichard MacCutchan10-Dec-17 6:18 
GeneralRe: To take input for n number of arrays and print it. Pin
Tarun Jha10-Dec-17 6:48
memberTarun Jha10-Dec-17 6:48 
GeneralRe: To take input for n number of arrays and print it. Pin
Richard MacCutchan10-Dec-17 6:52
protectorRichard MacCutchan10-Dec-17 6:52 
GeneralRe: To take input for n number of arrays and print it. Pin
Tarun Jha10-Dec-17 7:19
memberTarun Jha10-Dec-17 7:19 
AnswerRe: To take input for n number of arrays and print it. Pin
Member 1332249811-Dec-17 8:55
memberMember 1332249811-Dec-17 8:55 
GeneralRe: To take input for n number of arrays and print it. Pin
Tarun Jha11-Dec-17 10:56
memberTarun Jha11-Dec-17 10:56 
GeneralRe: To take input for n number of arrays and print it. Pin
Tarun Jha16-Dec-17 5:41
memberTarun Jha16-Dec-17 5:41 
QuestionHow do I keyboard input in OpenGL Pin
Mr. Anup Roy1-Dec-17 3:57
professionalMr. Anup Roy1-Dec-17 3:57 
QuestionHow to get cpu speed and ram manufaturer C Languae? Pin
Uzair Ahmad12-Nov-17 4:56
memberUzair Ahmad12-Nov-17 4:56 
AnswerRe: How to get cpu speed and ram manufaturer C Languae? Pin
Afzaal Ahmad Zeeshan1-Dec-17 4:32
mvpAfzaal Ahmad Zeeshan1-Dec-17 4:32 
QuestionHow to Disable open drop down Pin
yaswanthdasari24-Oct-17 21:36
memberyaswanthdasari24-Oct-17 21:36 
SuggestionRe: How to Disable open drop down Pin
Richard MacCutchan24-Oct-17 22:44
protectorRichard MacCutchan24-Oct-17 22:44 
GeneralRe: How to Disable open drop down Pin
yaswanthdasari25-Oct-17 0:38
memberyaswanthdasari25-Oct-17 0:38 
AnswerRe: How to Disable open drop down Pin
Daniel Pfeffer25-Oct-17 1:11
professionalDaniel Pfeffer25-Oct-17 1:11 
GeneralRe: How to Disable open drop down Pin
yaswanthdasari25-Oct-17 23:50
memberyaswanthdasari25-Oct-17 23:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy |
Web03-2016 | 2.8.180515.1 | Last Updated 20 Apr 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid