Posts by Mateus Borges • 169 points
5 posts
-
1
votes2
answers458
viewsQ: Sum in a Pivot Table
I’m learning how to use tables with PIVOT in Sql-Server. I have a table with the item name, seller name and customer id. Item | Customer | ID Rep Pen Set | 1001 | Richard Binder | 25092 | Nick Pen…
-
1
votes1
answer677
viewsQ: Create Chained Dynamic List
I am learning how to work with chained lists. In one of the videos classes I attended, the teacher suggests the following code: struct celula { int info; struct celula *prox; }; typedef celula Elem;…
-
9
votes2
answers1582
viewsQ: What is the difference in the syntax ptr = (int*) malloc (sizeof(int)) and ptr = malloc (sizeof(int))?
I have a question about dynamic allocation in C. At the time of allocating memory I have seen these two types of syntax: ptr = (int*) malloc (sizeof(int)); ptr = malloc (sizeof(int)); But I don’t…
-
2
votes3
answers6300
viewsQ: How to add numerical values inside a C string?
Good morning, I need to write a code that receives a number and returns the sum of the digits of that number. For example, if the user type 123456789 the program must print 45 (1+2+3+4...). I think…
-
2
votes2
answers5648
viewsQ: How to change the name of a column in a select in the database?
I am making a database for a college activity and was asked to display the table by changing the name of attributes(columns) to "Nome do Cliente" and "Endereco do Cliente". How can I do that?…