Jump to content


  • Posts

  • Joined

  • Last visited

  • Donations

  • Country


About DollyG

  • Birthday 01/24/1998

Profile Information

  • OS
    Windows 10 x86

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

DollyG's Achievements



  1. The distinction between a PRIMARY KEY constraint and a UNIQUE constraint, according to the MySQL documentation, is that a PK constraint does not permit NULL values whereas a UQ constraint does. One may generate both PK and UQ for the same column in a MySQL table! What use does it serve to add a UNIQUE constraint to a column that already has a PK constraint? Why won't MySQL let me add a unique constraint to a column with a PK constraint already? Click here for more references.
  2. I am simply developing bubble sort in C, but I am having trouble collecting array elements from the user; for example, if I enter array size 5, I am unable to save 5 elements in an array. I typed this code within the main method. The following code is taken from scaler. #include<conio.h> #include<stdio.h> void bubbleSort(int *arr, int size) { int temp, i, j; for(i = 1; i < size; i++){ for(j = 0; j <= size - i -1 ; j++){ if(*(arr+j) > *(arr+j+1)) { temp = *(arr+j); *(arr+j) = *(arr+j+1); *(arr+j+1)= temp; } } } } void display(int *p, int s) { for(int i = 0; i < s; i++){ printf("%d, ", *(p+i)); } } int main() { int i, size, arr[size]; printf("\n Enter Array Size ...."); scanf("%d", &size); printf("\n Enter %d array values...", size); for(i = 0; i < size; i++){ scanf("%d", &arr[i]); } bubbleSort(arr, size); display(arr, size); return 0; }
  3. My name is De, and I joined this group to learn more about web development. I am familiar with Java, C, HTML, and am actively learning CSS and Python. I am highly interested in programming, which is why I set a goal for myself to learn Python. I'm hoping that this community will assist me on my path. Thanks!

  • Create New...